forked from waku-org/nwaku
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync release assets, remove experimental from matrix
- Loading branch information
Showing
1 changed file
with
26 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,22 @@ on: | |
- 'v*' # "e.g. v0.4" | ||
|
||
workflow_dispatch: | ||
env: | ||
NPROC: 2 | ||
|
||
jobs: | ||
build-and-upload: | ||
strategy: | ||
matrix: | ||
env: | ||
- { NPROC: 2 } | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
env: ${{ matrix.env }} | ||
os: [ubuntu-latest, macos-latest] | ||
arch: [amd64] | ||
include: | ||
- os: macos-latest | ||
arch: arm64 | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
|
||
name: ${{ matrix.platform }} - ${{ matrix.env.NPROC }} processes | ||
name: ${{ matrix.os }} - ${{ matrix.arch }} | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -35,19 +38,28 @@ jobs: | |
path: | | ||
vendor/ | ||
.git/modules | ||
key: ${{ runner.os }}-vendor-modules-${{ steps.submodules.outputs.hash }} | ||
key: ${{ runner.os }}-${{matrix.arch}}-submodules-${{ steps.submodules.outputs.hash }} | ||
|
||
- name: prep variables | ||
id: vars | ||
run: | | ||
NWAKU_ARTIFACT_NAME=$(echo "nwaku${EXPERIMENTAL}-${{matrix.arch}}-${{runner.os}}.tar.gz" | tr "[:upper:]" "[:lower:]") | ||
echo "nwaku=${NWAKU_ARTIFACT_NAME}" >> $GITHUB_OUTPUT | ||
- name: Install dependencies | ||
run: | | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" CI=false wakunode1 | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" CI=false wakunode2 | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" CI=false chat2 | ||
tar -cvzf nim-waku-${{ matrix.platform }}.tar.gz ./build/ | ||
OS=$([[ "${{runner.os}}" == "macOS" ]] && echo "macosx" || echo "linux") | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" V=1 update | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" CI=false wakunode1 | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" CI=false wakunode2 | ||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" CI=false chat2 | ||
tar -cvzf ${{steps.vars.outputs.nwaku}} ./build/ | ||
- name: Upload asset | ||
uses: actions/[email protected] | ||
with: | ||
name: nim-waku-${{ matrix.platform }}.tar.gz | ||
path: nim-waku-${{ matrix.platform }}.tar.gz | ||
name: ${{steps.vars.outputs.nwaku}} | ||
path: ${{steps.vars.outputs.nwaku}} | ||
if-no-files-found: error |