Add back nightly testing of blst dependency #7
Workflow file for this run
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
name: Build and Test with blst Nightly | |
on: | |
# temporarily run on all PRs and commits | |
pull_request: | |
branches: | |
- '**' | |
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') | |
run: | | |
echo "Relic origin/main commit:" | |
curl -H "application/vnd.github.v3.sha" \ | |
https://api.github.com/repos/supranational/blst/commits/master | \ | |
head -10 | |
cmake --version | |
export BLST_MAIN=1 | |
mkdir -p build | |
cd build | |
cmake ../ | |
cmake --build . -- -j 6 | |
echo "Running ./src/runtest" | |
./src/runtest | |
- name: Mac OS build C++ and test | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
ls -l | |
export MACOSX_DEPLOYMENT_TARGET=10.14 | |
export BLST_MAIN=1 | |
mkdir -p build | |
ls -l build | |
cd build | |
cmake ../ | |
cmake --build . -- -j 6 | |
echo "Running ./src/runtest" | |
./src/runtest | |
- name: Windows build C++ and test | |
if: startsWith(matrix.os, 'windows') | |
run: | | |
set BLST_MAIN=1 | |
mkdir -p build | |
cd build | |
cmake ../ | |
cmake --build . -- -j 6 | |
echo "Running ./src/runtest" | |
./src/runtest | |
- 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 | |
run: | | |
emcc -v | |
export RELIC_MAIN=1 | |
sh emsdk_build.sh | |
sh js_test.sh |