Skip to content

Add windows build host. #33

Add windows build host.

Add windows build host. #33

Workflow file for this run

on: [push, pull_request]
name: ci
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [windows-latest] # ubuntu-latest, macos-latest,
runs-on: ${{ matrix.os }}
steps:
- name: Prereqs Ubuntu
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
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: Prereqs OSX
run: |
brew install elan-init libuv pkg-config
if: matrix.os == 'macos-latest'
- name: Prereqs Windows
run: |
echo $SHELL
uname -a
ls -la C:\msys64
curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
powershell -ExecutionPolicy Bypass -f elan-init.ps1 -y
pacman -S libuv
pkg-config --libs libuv
if: matrix.os == 'windows-latest'
- uses: actions/checkout@v4
- name: Lake build
run: |
which cc
ls -l $(which cc)
lake build --verbose