-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (96 loc) · 3.01 KB
/
actionstest.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: C/C++ CI
on:
schedule:
- cron: "0 22 3 * 5" # run test once a month
push:
branches: [master]
paths:
- configure.ac
- 'src/**'
- 'include/**'
- '.github/workflows/*'
pull_request:
branches: [master]
jobs:
notification:
runs-on: ubuntu-latest
name: Notifications
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
- name: Extract Branch name
id: extract_branch
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
- name: IRC notification
uses: Gottox/irc-message-action@v2
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: >
${{ github.actor }} started a build of unicodetest
[${{ steps.extract_branch.outputs.branch }}]
build:
runs-on: ${{ matrix.os }}
needs: notification
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
compiler: [g++-12, clang++]
steps:
- name: exclude Mac-OS with g++
shell: bash
if: ${{ matrix.os == 'macos-latest' && matrix.os == 'g++-12' }}
run: echo "action_status='skip'" >> $GITHUB_ENV
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/[email protected]
- name: Install Build Environment
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install pkgconf autoconf-archive
else
brew upgrade
brew install libtool
brew install autoconf
brew install autoconf-archive
brew install automake
fi
- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install libicu-dev libxml2-dev libbz2-dev;
sudo apt-get install zlib1g-dev
else
brew install libxml2
brew reinstall icu4c
brew install bzip2
brew install zlib
fi
- name: build
id: build
uses: LanguageMachines/ticcactions/[email protected]
with:
compiler: ${{ matrix.compiler }}
- name: show status
shell: bash
run: |
echo matrix.os=${{ matrix.os }}
echo runner.os=${{ runner.os }}
echo ACTION_STATUS=${{ env.action_status }}
- id: compiler
run: |
cid=$(echo ${{matrix.compiler}} | cut -d\+ -f1)
echo "cid=$cid" >> $GITHUB_ENV
- name: Notify IRC of results
uses: LanguageMachines/ticcactions/irc_status@v1
with:
os: ${{ matrix.os }}
module: actiontests
branch: ${{ needs.notification.outputs.branch }}
compiler: ${{ matrix.compiler }}
nickname: GH-${{ runner.os }}-${{ env.cid }}
status: ${{ env.action_status }}