-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from clearmatics/develop
v0.7 - Daric
- Loading branch information
Showing
316 changed files
with
6,595 additions
and
3,387 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
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
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 |
---|---|---|
@@ -1,19 +1,130 @@ | ||
# Actions for pull requests only | ||
name: zeth-ci-pull-request | ||
name: zeth-ci-onpullrequest-build-ubuntu | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build-linux-full: | ||
# Job to build the grpc libraries. The grpc build directory is populated and | ||
# cached so that all other jobs can mark this job as a prerequisite and just | ||
# run `make install`. | ||
# | ||
# NOTE: the version number here (in `key` and in script arguments) must be | ||
# kept in sync with the key used by the jobs. | ||
onpr-build-grpc: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache grpc | ||
uses: actions/cache@v2 | ||
with: | ||
key: grpc-1.31.x-${{ runner.os }} | ||
path: depends/grpc | ||
- name: Build grpc | ||
run: if ! [ -d depends/grpc ] ; then scripts/install_grpc /usr v1.31.x depends/grpc ; fi | ||
|
||
# Extract the commits of submodules for use by cache steps | ||
onpr-submodules: | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
commits: ${{ steps.get-commits.outputs.commits }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get Submodule Commits | ||
id: get-commits | ||
run: | | ||
git submodule sync | ||
echo "::set-output name=commits::"`git submodule status depends/libsodium | grep -oe '[0-9a-fA-F]\+' | head -c 8`-`git submodule status depends/libsnark | grep -oe '[0-9a-fA-F]\+' | head -c 8` | ||
# Run the prover testing python scripts | ||
prover-tests-linux: | ||
runs-on: ubuntu-20.04 | ||
needs: [onpr-build-grpc, onpr-submodules] | ||
strategy: | ||
matrix: | ||
curve: [ BLS12_377, ALT_BN128 ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
- name: Cache grpc | ||
uses: actions/cache@v2 | ||
with: | ||
key: grpc-1.31.x-${{ runner.os }} | ||
path: depends/grpc | ||
# - name: Cache ccache | ||
# uses: actions/cache@v2 | ||
# with: | ||
# key: prover-tests-ccache-${{ needs.onpr-submodules.outputs.commits }}-${{ matrix.curve }}-${{ runner.os }} | ||
# path: ~/.ccache | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/Library/Caches/pip | ||
key: prover-tests-pip-${{ hashFiles('**/setup.py') }}-${{ runner.os }} | ||
- name: Cache npm | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.npm | ||
depends/ganache-cli/node_modules | ||
key: prover-tests-npm-${{ hashFiles('**/package-lock.json') }}-${{ runner.os }} | ||
- name: Install dependencies | ||
run: | | ||
scripts/install_grpc /usr v1.31.x depends/grpc | ||
sudo apt install -y ccache | ||
- name: Execute | ||
run: CI_CONFIG=Release CI_CURVE=${{ matrix.curve }} CI_PROVER_TESTS=1 scripts/ci build | ||
|
||
# Run all unit tests and integration tests | ||
integration-tests-linux: | ||
runs-on: ubuntu-20.04 | ||
needs: [onpr-build-grpc, onpr-submodules] | ||
strategy: | ||
matrix: | ||
curve: [ BLS12_377, ALT_BN128 ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
- name: Cache grpc | ||
uses: actions/cache@v2 | ||
with: | ||
key: grpc-1.31.x-${{ runner.os }} | ||
path: depends/grpc | ||
# ccache in this job seems to make the tests crash occasionally. Disabling | ||
# until the cause is understood. | ||
# - name: Cache ccache | ||
# uses: actions/cache@v2 | ||
# with: | ||
# key: integration-tests-ccache-${{ needs.onpr-submodules.outputs.commits }}-${{ matrix.curve }}-${{ runner.os }} | ||
# path: ~/.ccache | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/Library/Caches/pip | ||
key: integration-tests-pip-${{ hashFiles('**/setup.py') }}-${{ runner.os }} | ||
- name: Cache npm | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.npm | ||
depends/ganache-cli/node_modules | ||
key: integration-tests-npm-${{ hashFiles('**/package-lock.json') }}-${{ runner.os }} | ||
- name: Install dependencies | ||
run: | | ||
scripts/install_grpc /usr v1.31.x depends/grpc | ||
sudo apt install -y ccache | ||
- name: Execute | ||
run: CI_EVENT_NAME=pull_request CI_USE_DOCKER=1 CI_CONFIG=Release CI_CURVE=${{ matrix.curve }} scripts/ci build | ||
run: CI_CONFIG=Release CI_CURVE=${{ matrix.curve }} CI_FULL_TESTS=1 CI_INTEGRATION_TESTS=1 scripts/ci build |
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
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
Oops, something went wrong.