name: Rust CI
on:
push:
branches: [master]
paths:
- 'src/**'
- 'tests/**'
- '.github/**'
pull_request:
branches: [master]
jobs:
notification:
runs-on: ubuntu-latest
name: Notify start to steps:
- name: IRC notification
uses: Gottox/irc-message-action@v1
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
${{ github.actor }} started a build of sesdiff
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Build Environment
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install cargo rustc
fi
- name: Build and test
id: test
run: cargo test
continue-on-error: true
- name: Notify IRC of failure
if: ${{ steps.test.outcome != 'success' }}
uses: Gottox/irc-message-action@v1
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
Building and testing sesdiff by ${{ github.actor }} on ${{ runner.os }}: FAILED
- name: Notify IRC of success
if: ${{ steps.test.outcome == 'success' }}
uses: Gottox/irc-message-action@v1
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
Building and testing sesdiff by ${{ github.actor }} on ${{ runner.os }}: SUCCESS