Skip to content

Commit

Permalink
Added notifications to nightly builds
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-walther committed Feb 14, 2022
1 parent 9512fc3 commit 0f1ff5f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: Daily builds
name: Nightly builds

on:
schedule:
- cron: '45 13 * * *'
- cron: '14 8 * * *'
jobs:
matrix_prep:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
# creates the matrix strategy from daily_build_matrix_includes.json
# creates the matrix strategy from nightly_build_matrix_includes.json
- uses: actions/checkout@v2
- id: set-matrix
uses: JoshuaTheMiller/conditional-build-matrix@main
with:
inputFile: '.github/workflows/daily_build_matrix_includes.json'
inputFile: '.github/workflows/nightly_build_matrix_includes.json'
filter: '[?runOnEvent==`${{ github.event_name }}` || runOnEvent==`always`]'
build:
needs: matrix_prep
strategy:
matrix: ${{fromJson(needs.matrix_prep.outputs.matrix)}}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.os == 'windows-latest' }}
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 squashfs-tools
Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:

- uses: actions-rs/clippy-check@v1
name: Clippy checks
# if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable'
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
Expand Down Expand Up @@ -95,3 +93,19 @@ jobs:
with:
command: clippy
args: --features=coconut -- -D warnings
- name: Keybase - Node Install
#if: ${{ job.status != 'success' }}
run: npm install
working-directory: .github/workflows/support-files/messages
- name: Keybase - Send Notification
#if: ${{ job.status != 'success' }}
env:
NYM_PROJECT_NAME: "Nym nightly build"
KEYBASE_NYMBOT_USERNAME: "${{ secrets.KEYBASE_NYMBOT_USERNAME }}"
KEYBASE_NYMBOT_PAPERKEY: "${{ secrets.KEYBASE_NYMBOT_PAPERKEY }}"
KEYBASE_NYMBOT_TEAM: "${{ secrets.KEYBASE_NYMBOT_TEAM }}"
KEYBASE_NYM_CHANNEL: "ci-nightly"
IS_SUCCESS: "${{ job.status == 'success' }}"
uses: docker://keybaseio/client:stable-node
with:
args: .github/workflows/support-files/messages/entry_point_notifications.sh

0 comments on commit 0f1ff5f

Please sign in to comment.