Skip to content

fix(rln-relay): waku_rln_number_registered_memberships metrics approp… #56

fix(rln-relay): waku_rln_number_registered_memberships metrics approp…

fix(rln-relay): waku_rln_number_registered_memberships metrics approp… #56

Workflow file for this run

name: Upload Release Asset
on:
push:
tags:
- 'v*' # "e.g. v0.4"
workflow_dispatch:
env:
NPROC: 2
jobs:
build-and-upload:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
arch: [amd64]
include:
- os: macos-latest
arch: arm64
runs-on: ${{ matrix.os }}
timeout-minutes: 60
name: ${{ matrix.os }} - ${{ matrix.arch }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get submodules hash
id: submodules
run: |
echo "hash=$(git submodule status | awk '{print $1}' | sort | shasum -a 256 | sed 's/[ -]*//g')" >> $GITHUB_OUTPUT
- name: Cache submodules
uses: actions/cache@v3
with:
path: |
vendor/
.git/modules
key: ${{ runner.os }}-${{matrix.arch}}-submodules-${{ steps.submodules.outputs.hash }}
- name: prep variables
id: vars
run: |
NWAKU_ARTIFACT_NAME=$(echo "nwaku-${{matrix.arch}}-${{runner.os}}.tar.gz" | tr "[:upper:]" "[:lower:]")
echo "nwaku=${NWAKU_ARTIFACT_NAME}" >> $GITHUB_OUTPUT
- name: Install dependencies
run: |
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 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: ${{steps.vars.outputs.nwaku}}
path: ${{steps.vars.outputs.nwaku}}
if-no-files-found: error