-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rln-keystore
- Loading branch information
Showing
38 changed files
with
1,461 additions
and
920 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
name: test1 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'waku/v2/**' | ||
- 'tests/all_tests_v2.nim' | ||
- 'tests/v2/**' | ||
|
||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
name: ${{ github.workflow }}-${{ matrix.platform }} | ||
steps: | ||
- run: 'echo "No test required"' |
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,66 @@ | ||
name: test1 | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'waku/v2/**' | ||
- 'tests/all_tests_v2.nim' | ||
- 'tests/v2/**' | ||
|
||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
env: | ||
- NPROC: 2 | ||
MAKEFLAGS: "-j${NPROC}" | ||
NIMFLAGS: "--parallelBuild:${NPROC}" | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
env: ${{ matrix.env }} | ||
timeout-minutes: 60 | ||
|
||
name: ${{ github.workflow }}-${{ matrix.platform }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# We need to do this because of how github cache works | ||
# I am not sure we can move the cache file, so if we do not do this | ||
# make update breaks because the cached compiler is there where the submodules | ||
# are meant to go. | ||
- name: Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Cache nim | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor/nimbus-build-system/vendor/Nim/bin | ||
key: ${{ runner.os }}-${{ matrix.env.NPROC }}-nim-${{ hashFiles('.gitmodules') }} | ||
|
||
- name: Update dependencies | ||
run: make V=1 update | ||
|
||
- name: Build V1 binaries | ||
run: make LOG_LEVEL=TRACE v1 | ||
|
||
- name: Run V1 Tests | ||
run: make test1 |
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,41 @@ | ||
name: test2 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'waku/v1/**' | ||
- 'tests/all_tests_v1.nim' | ||
- 'tests/v1/**' | ||
|
||
- 'waku/whisper/**' | ||
- 'tests/whisper/**' | ||
- 'tests/all_tests_whisper.nim' | ||
|
||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
name: ${{ github.workflow }}-${{ matrix.platform }} | ||
steps: | ||
- run: 'echo "No test required"' |
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,70 @@ | ||
name: test2 | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'waku/v1/**' | ||
- 'tests/all_tests_v1.nim' | ||
- 'tests/v1/**' | ||
|
||
- 'waku/whisper/**' | ||
- 'tests/whisper/**' | ||
- 'tests/all_tests_whisper.nim' | ||
|
||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'ci/**' | ||
- 'metrics/**' | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
env: | ||
- NPROC: 2 | ||
MAKEFLAGS: "-j${NPROC}" | ||
NIMFLAGS: "--parallelBuild:${NPROC}" | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
env: ${{ matrix.env }} | ||
timeout-minutes: 60 | ||
|
||
name: ${{ github.workflow }}-${{ matrix.platform }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# We need to do this because of how github cache works | ||
# I am not sure we can move the cache file, so if we do not do this | ||
# make update breaks because the cached compiler is there where the submodules | ||
# are meant to go. | ||
- name: Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Cache nim | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor/nimbus-build-system/vendor/Nim/bin | ||
key: ${{ runner.os }}-${{ matrix.env.NPROC }}-nim-${{ hashFiles('.gitmodules') }} | ||
|
||
- name: Update dependencies | ||
run: make V=1 update | ||
|
||
- name: Build V2 binaries | ||
run: make LOG_LEVEL=TRACE v2 | ||
|
||
- name: Run V2 Tests | ||
run: make test2 |
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.