Skip to content

Commit

Permalink
chore: add Mac and homebrew to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Apr 19, 2024
1 parent 3d2c5f2 commit c7bac67
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,36 @@ on:
push:
pull_request:

name: Continuous Integration
name: CI

jobs:
build:
strategy:
matrix:
toolchain:
- "leanprover/lean4:4.3.0"
- "leanprover/lean4:4.4.0"
- "leanprover/lean4:4.5.0"
- "leanprover/lean4:4.6.0"
- "leanprover/lean4:4.7.0"
- "leanprover/lean4:nightly-2024-04-07"
name: Build and test
runs-on: ubuntu-latest
- "4.3.0"
- "4.4.0"
- "4.5.0"
- "4.6.0"
- "4.7.0"
- "nightly-2024-04-07"
platform:
- os: ubuntu-latest
installer: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
- os: macos-latest
installer: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
- os: macos-latest
installer: |
brew install elan-init
name: Build and test (${{ matrix.platform.os }}, ${{ matrix.platform.installer}}, ${{ matrix.toolchain}})
runs-on: ${{ matrix.platform.os }}
steps:
- name: Install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v3.0.0/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
${{ matrix.platform.installer }}
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Which lake?
Expand All @@ -37,7 +46,7 @@ jobs:
- name: Select Lean version
run: |
echo "${{ matrix.toolchain }}" > lean-toolchain
echo "leanprover/lean4:${{ matrix.toolchain }}" > lean-toolchain
- name: Lean version
run: |
Expand All @@ -56,8 +65,8 @@ jobs:
- name: Configure demo/test subproject
run: |
pushd demo
~/.elan/bin/lake update
~/.elan/bin/lake build :examples
lake update
lake build :examples
popd
- name: Run tests
Expand Down

0 comments on commit c7bac67

Please sign in to comment.