-
Notifications
You must be signed in to change notification settings - Fork 213
80 lines (69 loc) · 2.05 KB
/
build-blst-nightly.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
73
74
75
76
77
78
79
80
name: Build and Test with blst Nightly
on:
schedule:
- cron: "0 11 * * *"
workflow_dispatch:
concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main') && github.sha || '' }}
cancel-in-progress: true
jobs:
build_with_blst_main:
name: Build and Test with blst Nightly
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Ubuntu build C++ and test blst at origin/main
if: startsWith(matrix.os, 'ubuntu')
# blst is still using master instead of main
env:
BLST_MAIN: 1
run: |
echo "blst origin/main commit:"
curl -H "application/vnd.github.v3.sha" \
https://api.github.com/repos/supranational/blst/commits/master | \
head -10
cmake -B build .
cmake --build build -- -j 6
echo "Running ./src/runtest"
./build/src/runtest
- name: Mac OS build C++ and test
if: startsWith(matrix.os, 'macos')
env:
BLST_MAIN: 1
MACOSX_DEPLOYMENT_TARGET: 10.14
run: |
cmake -B build .
cmake --build build -- -j 6
echo "Running ./src/runtest"
./build/src/runtest
- name: Windows build C++ and test
if: startsWith(matrix.os, 'windows')
env:
BLST_MAIN: 1
run: |
cmake -B build .
cmake --build build
echo "Running runtest"
build\src\Debug\runtest.exe
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Test pure python implementation
run: |
python python-impl/impl-test.py
- name: Install emsdk
uses: mymindstorm/setup-emsdk@v11
- name: Test javascript bindings
env:
BLST_MAIN: 1
run: |
emcc -v
sh emsdk_build.sh
sh js_test.sh