Skip to content

Commit

Permalink
chore(ci): add experimental builds to nightly (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed May 26, 2023
1 parent 473af70 commit ffac776
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/nightly.yml
Expand Up @@ -17,6 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
experimental: [true, false]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
Expand All @@ -36,28 +37,41 @@ jobs:
key: ${{ runner.os }}-vendor-modules-${{ steps.submodules.outputs.hash }}


- name: build artifacts
id: build
- name: prep variables
id: vars
run: |
ARCH=$(uname -m)
EXPERIMENTAL=$([[ "${{ matrix.experimental }}" == "true" ]] && echo "-experimental" || echo "")
echo "arch=${ARCH}" >> $GITHUB_OUTPUT
make QUICK_AND_DIRTY_COMPILER=1 V=1 CI=false wakunode2 tools
echo "experimental=${EXPERIMENTAL}" >> $GITHUB_OUTPUT
NWAKU_ARTIFACT_NAME=$(echo "nwaku${EXPERIMENTAL}-${ARCH}-${{runner.os}}.tar.gz" | tr "[:upper:]" "[:lower:]")
NWAKU_TOOLS_ARTIFACT_NAME=$(echo "nwaku-tools${EXPERIMENTAL}-${ARCH}-${{runner.os}}.tar.gz" | tr "[:upper:]" "[:lower:]")
echo "nwaku=${NWAKU_ARTIFACT_NAME}" >> $GITHUB_OUTPUT
echo "nwakutools=${NWAKU_TOOLS_ARTIFACT_NAME}" >> $GITHUB_OUTPUT
- name: build artifacts
id: build
run: |
make QUICK_AND_DIRTY_COMPILER=1 V=1 CI=false EXPERIMENTAL=${{matrix.experimental}} wakunode2 tools
tar -cvzf nwaku-${ARCH}-${{runner.os}}.tar.gz ./build/wakunode2
tar -cvzf nwaku-tools-${ARCH}-${{runner.os}}.tar.gz ./build/wakucanary ./build/networkmonitor
tar -cvzf ${{steps.vars.outputs.nwaku}} ./build/wakunode2
tar -cvzf ${{steps.vars.outputs.nwakutools}} ./build/wakucanary ./build/networkmonitor
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: wakunode2
path: nwaku-${{steps.build.outputs.arch}}-${{runner.os}}.tar.gz
path: ${{steps.vars.outputs.nwaku}}
retention-days: 2

- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: tools
path: nwaku-tools-${{steps.build.outputs.arch}}-${{runner.os}}.tar.gz
path: ${{steps.vars.outputs.nwakutools}}
retention-days: 2

create-release-candidate:
Expand Down

0 comments on commit ffac776

Please sign in to comment.