nym-wallet-nightly-build: enable notification

This commit is contained in:
Jon Häggblad
2023-09-22 10:16:53 +02:00
parent 5fd68ae909
commit 3ccec3857e
2 changed files with 41 additions and 41 deletions
+3 -3
View File
@@ -91,14 +91,14 @@ jobs:
command: test
args: --workspace -- --ignored
- uses: actions-rs/clippy-check@v1
name: Clippy checks
- name: Annotate with clippy checks
uses: actions-rs/clippy-check@v1
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace
- name: Run clippy
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
+38 -38
View File
@@ -10,17 +10,17 @@ defaults:
working-directory: nym-wallet
jobs:
nym-connect-job:
build:
strategy:
matrix:
platform: [ubuntu-20.04, macos-latest, windows10]
os: [ubuntu-20.04, macos-latest, windows10]
fail-fast: false
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libudev-dev squashfs-tools protobuf-compiler
continue-on-error: true
if: matrix.os == 'custom-linux'
if: matrix.os == 'ubuntu-20.04'
- name: Check out repository code
uses: actions/checkout@v3
@@ -65,37 +65,37 @@ jobs:
command: clippy
args: --workspace --all-targets -- -D warnings
# notification:
# needs: build
# runs-on: custom-runner-linux
# steps:
# - name: Collect jobs status
# uses: technote-space/workflow-conclusion-action@v2
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: install npm
# uses: actions/setup-node@v3
# 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
notification:
needs: build
runs-on: custom-runner-linux
steps:
- name: Collect jobs status
uses: technote-space/workflow-conclusion-action@v2
- name: Check out repository code
uses: actions/checkout@v3
- name: install npm
uses: actions/setup-node@v3
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