mirror of https://github.com/waku-org/js-waku.git
Merge pull request #397 from status-im/rework-nim-waku-cache
This commit is contained in:
commit
fa28f46c15
|
@ -12,6 +12,7 @@ jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
env:
|
env:
|
||||||
BUF_VERSION: '0.56.0'
|
BUF_VERSION: '0.56.0'
|
||||||
|
NIM_WAKU_VERSION: 'v0.6'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [16]
|
node: [16]
|
||||||
|
@ -20,34 +21,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2.3.3
|
uses: actions/checkout@v2.3.3
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
|
|
||||||
- name: Get nim-waku HEAD
|
- name: Get nim-waku
|
||||||
id: nim-waku-head
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cd nim-waku && echo "::set-output name=ref::$(git rev-parse HEAD)"
|
run: |
|
||||||
|
mkdir -p nim-waku/build
|
||||||
- name: Cache nim-waku binary
|
cd nim-waku
|
||||||
id: cache-nim-waku
|
wget "https://github.com/status-im/nim-waku/releases/download/${NIM_WAKU_VERSION}/nim-waku-ubuntu-latest.tar.gz.1.zip"
|
||||||
uses: actions/cache@v2
|
unzip nim-waku-ubuntu-latest.tar.gz.1.zip
|
||||||
with:
|
tar xavf nim-waku-ubuntu-latest.tar.gz
|
||||||
path: |
|
|
||||||
./nim-waku/build/wakunode2
|
|
||||||
./nim-waku/vendor/rln/target/debug
|
|
||||||
key: nim-waku-build-${{ matrix.os }}-v3-${{ steps.nim-waku-head.outputs.ref }}
|
|
||||||
|
|
||||||
- name: Install NodeJS
|
- name: Install NodeJS
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
# This would have been done part of npm pretest, but it gives better
|
|
||||||
# visibility in the CI if done as a separate step
|
|
||||||
- name: Build wakunode2
|
|
||||||
shell: bash
|
|
||||||
run: (cd nim-waku && ./build/wakunode2 --help) || npm run nim-waku:build
|
|
||||||
|
|
||||||
- name: Ensure wakunode2 is ready
|
- name: Ensure wakunode2 is ready
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cd nim-waku && ./build/wakunode2 --help
|
run: cd nim-waku && ./build/wakunode2 --help
|
||||||
|
|
Loading…
Reference in New Issue