Skip to content

Commit

Permalink
Fix the Windows flow and improve the others (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi committed Jun 21, 2023
1 parent 091e837 commit 9182e24
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/build-blst-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,44 +30,35 @@ jobs:
- name: Ubuntu build C++ and test blst at origin/main
if: startsWith(matrix.os, 'ubuntu')
run: |
echo "Relic origin/main commit:"
echo "blst 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
cmake -B build .
cmake --build build -- -j 6
echo "Running ./src/runtest"
./src/runtest
./build/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
cmake -B build .
cmake --build build -- -j 6
echo "Running ./src/runtest"
./src/runtest
./build/src/runtest
- name: Windows build C++ and test
if: startsWith(matrix.os, 'windows')
run: |
$env:BLST_MAIN = '1'
mkdir build
cd build
cmake ../
cmake --build .
Get-ChildItem -Path src\ -Force
echo "Running ./src/runtest"
src\runtest
set BLST_MAIN=1
cmake -B build .
cmake --build build
echo "Running runtest"
build\src\Debug\runtest.exe
- name: Install Python
uses: actions/setup-python@v4
Expand All @@ -84,6 +75,6 @@ jobs:
- name: Test javascript bindings
run: |
emcc -v
export RELIC_MAIN=1
export BLST_MAIN=1
sh emsdk_build.sh
sh js_test.sh

0 comments on commit 9182e24

Please sign in to comment.