nightly-nym-wallet-build #376
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
name: nightly-nym-wallet-build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '14 1 * * *' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
CARGO_TERM_COLOR: always | |
MANIFEST_PATH: --manifest-path nym-wallet/Cargo.toml | |
continue-on-error: true | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install Dependencies (Linux) | |
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev squashfs-tools | |
if: matrix.os == 'ubuntu-20.04' | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: ${{ env.MANIFEST_PATH }} --all -- --check | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: ${{ env.MANIFEST_PATH }} --release --workspace | |
- name: Unit tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: ${{ env.MANIFEST_PATH }} --workspace | |
- name: Clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: ${{ env.MANIFEST_PATH }} --workspace --all-targets -- -D warnings | |
notification: | |
needs: build | |
runs-on: custom-linux | |
steps: | |
- name: Collect jobs status | |
uses: technote-space/workflow-conclusion-action@v3 | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: install npm | |
uses: actions/setup-node@v4 | |
if: env.WORKFLOW_CONCLUSION == 'failure' | |
with: | |
node-version: 18 | |
- name: Matrix - Node Install | |
if: env.WORKFLOW_CONCLUSION == 'failure' | |
run: npm install | |
working-directory: .github/workflows/support-files | |
- name: Matrix - Send Notification | |
if: env.WORKFLOW_CONCLUSION == 'failure' | |
env: | |
NYM_NOTIFICATION_KIND: nightly | |
NYM_PROJECT_NAME: "nym-wallet-nightly-build" | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
GIT_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}" | |
GIT_BRANCH: "${GITHUB_REF##*/}" | |
IS_SUCCESS: "${{ env.WORKFLOW_CONCLUSION == 'success' }}" | |
MATRIX_SERVER: "${{ secrets.MATRIX_SERVER }}" | |
MATRIX_ROOM: "${{ secrets.MATRIX_ROOM_NIGHTLY }}" | |
MATRIX_USER_ID: "${{ secrets.MATRIX_USER_ID }}" | |
MATRIX_TOKEN: "${{ secrets.MATRIX_TOKEN }}" | |
MATRIX_DEVICE_ID: "${{ secrets.MATRIX_DEVICE_ID }}" | |
uses: docker://keybaseio/client:stable-node | |
with: | |
args: .github/workflows/support-files/notifications/entry_point.sh |