Skip to content

Commit

Permalink
windows build?
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Jan 6, 2025
1 parent d619d4b commit b24bac1
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 30 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ jobs:

build-macos:
uses: ./.github/workflows/build-macos.yml

build-windows:
uses: ./.github/workflows/build-windows.yml
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defaults:
shell: bash

jobs:
build:
build-linux:
runs-on: ubuntu-22.04
# We prefer slightly older Ubuntu so we get binaries that work on
# all more recent versions.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_call:

jobs:
build:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build F* (Windows)

# Build F* on Windows

on:
workflow_call:
workflow_dispatch:
push:

# defaults:
# run:
# shell:
# bash
# # ^ avoid powershell!

jobs:
build-windows:
# NOTE! Unlike our other builds, this requires a self-hosted
# runner (for now?)
runs-on: [self-hosted, Windows, X64, opam-2-3]

steps:
- uses: actions/checkout@master

- name: Set version
shell: C:\cygwin64\bin\bash.exe --login '{0}'
run: |
if [[ "${{github.workflow_ref}}" =~ "nightly.yml" ]]; then echo FSTAR_VERSION="nightly-$(date -I)" >> $GITHUB_ENV; elif [[ "${{github.workflow_ref}}" =~ "release.yml" ]]; then echo FSTAR_VERSION="$(cat version.txt)" >> $GITHUB_ENV; fi && echo "There is a CR at the end of this line"
- name: Build package
shell: C:\cygwin64\bin\bash.exe --login '{0}'
run: |
eval $(opam env) && CC=x86_64-w64-mingw32-gcc.exe make -skj$(nproc) package FSTAR_TAG=-Windows_NT-x86_64 V=1 && echo "There is a CR at the end of this line"
- uses: actions/upload-artifact@v4
with:
path: fstar-Windows_NT-x86_64.tar.gz
name: fstar-Windows_NT-x86_64.tar.gz
28 changes: 0 additions & 28 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit b24bac1

Please sign in to comment.