-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.47 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on: [push, pull_request]
name: ci
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ubuntu-latest
steps:
- name: install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.2/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- name: Install libuv (ubuntu)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libuv1-dev clang
sudo update-alternatives --set cc /usr/bin/clang
if: matrix.os == 'ubuntu-latest'
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
if: matrix.os == 'macos-latest'
- name: Install libuv (osx)
run: brew install libuv pkg-config
if: matrix.os == 'macos-latest'
- uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
install: libuv
- name: Install libuv (windows)
run: |
pacman -S libuv
pkg-config --libs libuv
if: matrix.os == 'windows-latest'
- name: Lake build
run: |
which cc
ls -l $(which cc)
lake build --verbose