Initial work on splitting out nym-wallet nightliy build (#3924)
This commit is contained in:
@@ -114,32 +114,6 @@ jobs:
|
||||
with:
|
||||
command: clean
|
||||
|
||||
# nym-wallet (the rust part)
|
||||
- name: Build nym-wallet rust code
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --manifest-path nym-wallet/Cargo.toml --workspace
|
||||
|
||||
- name: Run nym-wallet tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --manifest-path nym-wallet/Cargo.toml --workspace
|
||||
|
||||
- name: Check nym-wallet formatting
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path nym-wallet/Cargo.toml --all -- --check
|
||||
|
||||
- name: Run clippy for nym-wallet
|
||||
uses: actions-rs/cargo@v1
|
||||
if: ${{ matrix.rust != 'nightly' }}
|
||||
with:
|
||||
command: clippy
|
||||
args: --manifest-path nym-wallet/Cargo.toml --workspace --all-targets -- -D warnings
|
||||
|
||||
notification:
|
||||
needs: build
|
||||
runs-on: custom-runner-linux
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
name: nym-wallet-nightly-build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '14 1 * * *'
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: nym-wallet
|
||||
|
||||
jobs:
|
||||
nym-connect-job:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ubuntu-20.04, macos-latest, windows10]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.platform }}
|
||||
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'
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Check formatting
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
# - name: Build all binaries
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: build
|
||||
# args: --workspace
|
||||
#
|
||||
# - name: Run all tests
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: test
|
||||
# args: --workspace
|
||||
#
|
||||
# - uses: actions-rs/clippy-check@v1
|
||||
# name: Clippy checks
|
||||
# continue-on-error: true
|
||||
# with:
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# args: --workspace
|
||||
#
|
||||
# - name: Run clippy
|
||||
# uses: actions-rs/cargo@v1
|
||||
# if: ${{ matrix.rust != 'nightly' }}
|
||||
# with:
|
||||
# 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
|
||||
Reference in New Issue
Block a user