Skip to content

Commit

Permalink
Add MacOS, Python, Javascript tests to Relic Nightly (Chia-Network#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmang9 authored Jul 12, 2021
1 parent 7457c4b commit 2dd0730
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/relic-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test C++ with Relic Nightly
name: Build and Test with Relic Nightly

on:
schedule:
Expand All @@ -7,12 +7,12 @@ on:

jobs:
build_wheels:
name: Build and Test C++ with Relic Nightly
name: Build and Test with Relic Nightly
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [macos-latest, ubuntu-latest]

steps:
- name: Cancel previous runs on the same branch
Expand Down Expand Up @@ -55,3 +55,37 @@ jobs:
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 CIBUILDWHEEL=1
export RELIC_MAIN=1
mkdir -p build
ls -l build
cd build
cmake ../
cmake --build . -- -j 6
echo "Running ./src/runtest"
./src/runtest
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Test pure python implementation
run: |
python python-impl/impl-test.py
- name: Install emsdk
uses: mymindstorm/setup-emsdk@v9

- name: Test javascript bindings
run: |
emcc -v
export RELIC_MAIN=1
sh emsdk_build.sh
sh js_test.sh
2 changes: 1 addition & 1 deletion js-bindings/wrappers/BignumWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace js_wrappers {
Bignum::Bignum() {
bn_init(&content, 1);
bn_make(&content, 1);
}

Bignum::~Bignum() {
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(FetchContent)
if (DEFINED ENV{RELIC_MAIN})
set(RELIC_GIT_TAG "origin/main")
else ()
set(RELIC_GIT_TAG "1885ae3b681c423c72b65ce1fe70910142cf941c")
set(RELIC_GIT_TAG "e6209fd80e07203b865983faee635fa1f85d6c9f")
endif ()

message(STATUS "Relic will be built from: ${RELIC_GIT_TAG}")
Expand Down

0 comments on commit 2dd0730

Please sign in to comment.