-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (63 loc) · 2.52 KB
/
archlinux-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
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
name: Build on ArchLinux
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
strategy:
fail-fast: false
steps:
- name: Install requirements
run: |
pacman -Sy --noconfirm \
base-devel \
git \
wget \
catch2 \
ccache \
cmake \
ninja \
python \
qt6-base \
qt6-multimedia \
opencv \
exiv2
- name: Build AUR requirements
run: |
chsh -s /bin/bash nobody && \
mkdir aur && \
pushd aur && \
mkdir -m777 cs-libguarded && \
pushd cs-libguarded && \
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cs-libguarded -O PKGBUILD && \
su nobody -c makepkg && \
pacman -U *.pkg.tar.* && \
popd && \
popd
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}-${{ matrix.compiler.compiler }}
- name: Build
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
configure-options:
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-Wdev -Werror=dev
-G Ninja
run-test: true
ctest-options:
--output-on-failure
--repeat until-fail:5
env:
TSAN_OPTIONS=suppressions: ${{ runner.workspace }}/photobroom/sanitizer-thread-suppressions.txt