-
Notifications
You must be signed in to change notification settings - Fork 94
39 lines (31 loc) · 987 Bytes
/
linux-build.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
name: Linux build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: speedup dpkg
run: sudo sh -c "echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/force-unsafe-io"
- name: install dependencies
run: |
sudo apt-get install \
libcairo2-dev \
libxi-dev libx11-dev x11proto-core-dev x11proto-dev libxt-dev libxfixes-dev libxinerama-dev libxrandr-dev \
libwayland-dev wayland-protocols
- name: build (GCC w/o libconfig)
run: make clean && make
- name: build (clang w/o libconfig)
run: |
export CC=clang
make clean && make
unset CC
- name: install libconfig
run: sudo apt-get install libconfig-dev
- name: build (GCC)
run: make clean && make
- name: build (clang)
run: |
export CC=clang
make clean && make
unset CC