-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (43 loc) · 1.48 KB
/
ci.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
46
47
48
name: GOTK3Adapter CI
on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
go: [ '1.19', '1.18', '1.17', '1.16', '1.15' ]
name: Test go-${{ matrix.go }} (Linux)
steps:
- name: checkout
uses: actions/checkout@v2
- name: install OS dependencies
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gettext libglib2.0-dev libc6-dev-i386 xvfb
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: build
run: make
notify-test:
name: Notify on success or failure of test
needs: test-linux
runs-on: ubuntu-20.04
if: always()
steps:
- name: checkout
uses: actions/checkout@v2
- uses: technote-space/workflow-conclusion-action@v1
- uses: coyim/coyim/.github/actions/ci-conclusion-message@main
id: message-generator
with:
status: ${{ env.WORKFLOW_CONCLUSION }}
commit_id: ${{ github.sha }}
commit_message: ${{ github.event.head_commit.message }}
- name: send message to Matrix on conclusion
uses: olabiniV2/[email protected]
with:
room_id: ${{ secrets.MATRIX_COYIM_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: ${{ secrets.MATRIX_SERVER }}
subject: ${{ steps.message-generator.outputs.subject }}
message: ${{ steps.message-generator.outputs.message }}