-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back nightly testing of blst dependency (#410)
* Add back nightly testing of blst dependency * missing endif () * temporarily run on all pushes and PRs to test * yaml fixup * Fix origin/main tag issue * blst still uses master * windows fixes, less linux cmake * more windows tweaks * windows env fix, try runtest again * Fix the Windows flow and improve the others (#413) * Try setting the env at the workflow level * move to env: for all steps * Fix Linux build when using blst's main. Discovered by Earle. (#415) * Remove regular on PR for nightly and on-demand --------- Co-authored-by: Amine Khaldi <[email protected]>
- Loading branch information
1 parent
377ad17
commit a1638a7
Showing
2 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters