-
Notifications
You must be signed in to change notification settings - Fork 3
162 lines (145 loc) · 4.12 KB
/
check.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: Check
on:
push:
branches:
- '*'
- '*/**'
paths-ignore:
- 'README.md'
- '.gitignore'
- 'LICENSE'
- 'CHANGELOG.md'
- 'SECURITY.md'
- 'Acknowledgements.md'
- 'config/metadata/**'
- '.github/workflows/publish.yml'
- '.github/workflows/build.yml'
- 'tools/**'
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- compiler: gcc
version: 11
- compiler: gcc
version: 12
- compiler: gcc
version: 13
# See https://github.com/actions/runner-images/issues/8659
# - compiler: clang
# version: 13
# - compiler: clang
# version: 14
- compiler: clang
version: 15
- compiler: clang
version: 17
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Linux
run: |
sudo apt-get update
sudo apt-get install -y libsystemd-dev
if [[ '${{ matrix.compiler }}' == 'clang' ]]; then
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh ${{ matrix.version }}
echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
fi
if [[ '${{ matrix.compiler }}' == 'gcc' ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.version }} g++-${{ matrix.version }}
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
fi
- name: Configure
run: |
[ -d "out" ] && tools/uncache out
cmake -S . -B out \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
run: |
installers/deb/build.py . out
linux-old:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Linux
run: |
sudo apt-get update
sudo apt-get install -y libsystemd-dev
echo "CC=gcc-10" >> $GITHUB_ENV
echo "CXX=g++-10" >> $GITHUB_ENV
- name: Configure
run: |
[ -d "out" ] && tools/uncache out
cmake -S . -B out \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
run: |
installers/deb/build.py . out
mac:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-13
xcode: '14.3.1'
- os: macos-13
xcode: '15.2'
- os: macos-14
xcode: '14.3.1'
- os: macos-14
xcode: '15.3'
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: |
[ -d "out" ] && tools/uncache out
cmake -S . -B out \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
"-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64"
- name: Build
run: |
installers/mac/build.py . out
others:
concurrency: ${{ matrix.remote_host }}
runs-on: [self-hosted, server]
strategy:
fail-fast: false
matrix:
remote_host:
- centos-9
- openbsd-7-5
- alpine-3
- archlinux
- netbsd-10
- omnios
steps:
- name: Run remote build
run: |
"$RUNNER_TOOLS_PATH"/run-agent gh-${{ matrix.remote_host }} <<'EOF'
set -e
if [ ! -d work/wsdd-native ]; then
git clone https://github.com/gershnik/wsdd-native.git work/wsdd-native
fi
cd work/wsdd-native
git fetch --all
git fetch -f --prune --tags
git reset --hard ${{ github.sha }}
[ -d "out" ] && tools/uncache out
cmake -S . -B out -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build out --target wsddn
EOF