-
Notifications
You must be signed in to change notification settings - Fork 18
56 lines (53 loc) · 1.87 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
49
50
51
52
53
54
55
56
on:
push:
branches: [ "feature/continuous-integration", "development" ]
jobs:
devel:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- run: pacman-key --init
- run: pacman -Syu --noconfirm git sudo
- uses: actions/checkout@v3
- run: git config --global --add safe.directory /__w/cagebreak/cagebreak
- run: bash scripts/install-development-environment
- run: meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release
- run: ninja -C build
- run: meson test -C build --suite devel --suite devel-long -v
basic:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- run: pacman-key --init
- run: pacman -Syu --noconfirm git sudo
- uses: actions/checkout@v3
- run: bash scripts/install-development-environment
- run: meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release
- run: ninja -C build
- run: useradd test && usermod -L test
- run: runuser -l test -c 'meson test -C build --suite basic -v'
release:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- run: pacman-key --init
- run: pacman -Syu --noconfirm git sudo
- uses: actions/checkout@v3
- run: bash scripts/install-development-environment
- run: meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release
- run: ninja -C build
- run: useradd test && usermod -L test
- run: runuser -l test -c 'meson test -C build --suite release -v'
# pkgtest:
# runs-on: ubuntu-latest
# container:
# image: archlinux:latest
# steps:
# - run: pacman-key --init
# - run: pacman -Syu --noconfirm git sudo
# - run: git clone https://github.com/project-repo/cagebreak-pkgbuild
# - run: cd cagebreak-pkgbuild/cagebreak
# - run: makepkg