Skip to content

Commit 2ba29a0

Browse files
authored
Merge pull request #4207 from mtzguido/mac
Build macOS x86 package
2 parents d2cd9e1 + 7f57a94 commit 2ba29a0

3 files changed

Lines changed: 21 additions & 15 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ defaults:
1818
jobs:
1919
build:
2020
strategy:
21+
fail-fast: false
2122
matrix:
2223
os:
2324
# We prefer slightly older Ubuntu so we get binaries that work on
@@ -39,7 +40,6 @@ jobs:
3940

4041
- name: Prepare
4142
run: |
42-
./.scripts/get_fstar_z3.sh $HOME/bin
4343
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
4444
opam install --deps-only ./fstar.opam
4545
@@ -66,7 +66,7 @@ jobs:
6666
KERNEL=$(uname -s)
6767
ARCH=$(uname -m)
6868
export FSTAR_TAG=-$KERNEL-$ARCH
69-
make -skj$(nproc) package
69+
make -skj$(nproc) package ADMIT=1
7070
# Currently creating the source package in a separate job
7171
# make -skj$(nproc) package-src FSTAR_TAG=
7272
# # ^ no tag in source package
@@ -83,6 +83,7 @@ jobs:
8383
smoke_test:
8484
needs: build
8585
strategy:
86+
fail-fast: false
8687
matrix:
8788
os:
8889
- ubuntu-22.04
@@ -102,7 +103,7 @@ jobs:
102103
- name: Smoke test
103104
run: |
104105
./fstar/bin/fstar.exe fstar/lib/fstar/ulib/Prims.fst -f
105-
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
106+
echo -e "module A\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
106107
./fstar/bin/fstar.exe A.fst
107108
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
108109
./fstar/bin/fstar.exe --admit_smt_queries true B.fst

.github/workflows/build-macos.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: macos-14
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- macos-14
18+
- macos-15-intel
19+
runs-on: ${{ matrix.os }}
20+
1421
steps:
1522
- uses: actions/checkout@master
1623
with:
@@ -24,7 +31,6 @@ jobs:
2431
- name: Prepare
2532
run: |
2633
brew install opam bash gnu-getopt coreutils gnu-sed make
27-
./.scripts/get_fstar_z3.sh $HOME/bin
2834
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
2935
opam install --deps-only ./fstar.opam
3036
@@ -52,38 +58,37 @@ jobs:
5258
KERNEL=$(uname -s)
5359
ARCH=$(uname -m)
5460
export FSTAR_TAG=-$KERNEL-$ARCH
55-
gmake -skj$(nproc) package
61+
gmake -skj$(nproc) package ADMIT=1
5662
5763
- uses: actions/upload-artifact@v7
5864
with:
5965
path: fstar-*
60-
name: package-mac
66+
name: package-mac-${{ matrix.os }}
6167

6268
smoke_test:
6369
needs: build
6470
strategy:
71+
fail-fast: false
6572
matrix:
6673
os:
6774
- macos-14
6875
- macos-15
6976
- macos-latest
77+
- macos-15-intel
7078
runs-on: ${{ matrix.os }}
7179
steps:
72-
- uses: cda-tum/setup-z3@main
73-
with:
74-
version: 4.13.3
75-
7680
- name: Get fstar package
7781
uses: actions/download-artifact@v8
7882
with:
79-
name: package-mac
83+
pattern: package-mac-*
84+
merge-multiple: true
8085

81-
- run: tar xzf fstar*.tar.gz
86+
- run: tar xzf fstar-Darwin-$(uname -m).tar.gz
8287

8388
- name: Smoke test
8489
run: |
8590
./fstar/bin/fstar.exe --admit_smt_queries true fstar/lib/fstar/ulib/Prims.fst -f
86-
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
91+
echo -e "module A\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
8792
./fstar/bin/fstar.exe --admit_smt_queries true A.fst
8893
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
8994
./fstar/bin/fstar.exe --admit_smt_queries true B.fst

.github/workflows/build-opam.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Smoke test
3939
run: |
40-
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
40+
echo -e "module A\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
4141
eval $(opam env) && fstar.exe A.fst
4242
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
4343
eval $(opam env) && fstar.exe B.fst

0 commit comments

Comments
 (0)