Skip to content

Add windows build host. #23

Add windows build host.

Add windows build host. #23

Workflow file for this run

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