forked from FStarLang/FStar
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (58 loc) · 2.05 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: FStar Binary Release
on:
workflow_dispatch:
jobs:
build-linux:
runs-on: [self-hosted, linux, X64]
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Package and release FStar
run: |
ci_docker_image_tag=fstar-release:local-run-$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT
ci_docker_builder=builder_fstar-release_${GITHUB_RUN_ID}_${GITHUB_RUN_ATTEMPT}
docker buildx create --name $ci_docker_builder --driver-opt env.BUILDKIT_STEP_LOG_MAX_SIZE=500000000
docker buildx build --builder $ci_docker_builder --pull --load --secret id=DZOMO_GITHUB_TOKEN -t $ci_docker_image_tag -f .docker/release.Dockerfile .
env:
DZOMO_GITHUB_TOKEN: ${{ secrets.DZOMO_GITHUB_TOKEN }}
- name: Remove the builder if created
if: ${{ always() }}
run: |
docker buildx rm -f $ci_docker_builder || true
build-macos:
needs: build-linux
runs-on: macos-latest
steps:
- name: Checkout FStar
uses: actions/checkout@v2
with:
path: FStar
- name: Checkout everest
uses: actions/checkout@v2
with:
repository: project-everest/everest
path: FStar/.github/everest
- name: Install .NET SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: Setup dependencies
run: ./FStar/.github/setup-macos.sh
- name: Package and release FStar
run: |
source FStar/.github/env.sh
CI_THREADS=24 FSTAR_SKIP_PACKAGE_TEST=1 FStar/.scripts/release.sh
env:
GH_TOKEN: ${{ secrets.DZOMO_GITHUB_TOKEN }}
build-windows:
needs: build-linux
runs-on: [self-hosted, Windows, X64]
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Package and release FStar
shell: C:\cygwin64\bin\bash.exe --login '{0}'
run: |
FSTAR_COMMIT=$GITHUB_SHA CI_THREADS=24 $GITHUB_WORKSPACE/.scripts/release.sh && echo "There is a CR at the end of this line"
env:
GH_TOKEN: ${{ secrets.DZOMO_GITHUB_TOKEN }}