-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.18 KB
/
embedded.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: STM32 Build
on:
push:
paths:
- 'eRINA_STM32F7/**.adb'
- 'eRINA_STM32F7/**.ads'
- 'eRINA_STM32F7/**.gpr'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: alire-project/setup-alire@v2
- name: Build
run: >
alr index --add git+https://github.com/GNAT-Academic-Program/alire-index --name gap &&
cd eRINA_STM32F7 &&
alr build
- name: Slack Notification Success
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: github-notifications
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://i.imgur.com/B8K3gi8.png
SLACK_USERNAME: Build Bot
SLACK_MESSAGE: 'Build Passed'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Slack Notification Failure
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: github-notifications
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://i.imgur.com/B8K3gi8.png
SLACK_USERNAME: Build Bot
SLACK_MESSAGE: 'Build Failed'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}