-
Notifications
You must be signed in to change notification settings - Fork 49
42 lines (40 loc) · 2.08 KB
/
Copy pathci.yaml
File metadata and controls
42 lines (40 loc) · 2.08 KB
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
name: CI
on: [push, pull_request]
jobs:
test_musl_gcc:
name: "Test with with GCC/musl/libstdc++/BFD on Alpine Linux"
runs-on: ubuntu-latest
container: alpine:latest
steps:
- run: echo 'http://dl-cdn.alpinelinux.org/alpine/v3.22/community' > /etc/apk/repositories
- run: echo 'http://dl-cdn.alpinelinux.org/alpine/v3.22/main' >> /etc/apk/repositories
- run: apk --no-cache add git g++ binutils pkgconf meson ninja musl-dev gtkmm4-dev vala gobject-introspection gobject-introspection-dev ddcutil pulseaudio-dev pipewire-dev wireplumber-dev libdbusmenu-glib-dev alsa-lib-dev yyjson-dev linux-pam-dev util-linux-login openssl-dev
- run: echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
- run: echo 'http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories
- run: echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
- run: apk --no-cache add wayland-protocols wayfire-dev gtk4-layer-shell-dev gtk4-layer-shell
- name: wf-shell
uses: actions/checkout@v2
with:
repository: WayfireWM/wf-shell
path: wf-shell
- run: cd wf-shell && meson setup build --prefix=/usr && ninja -v -C build && ninja -v -C build install && cd ..
test_code_style:
name: "Check code style with uncrustify"
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update
- run: sudo apt-get install -y git cmake gcc make
- name: Build Uncrustify
uses: actions/checkout@v2
with:
repository: ammen99/uncrustify
path: uncrustify
- run: cd uncrustify && mkdir build && cd build && cmake .. && make && cd ../..
- name: Run Uncrustify Check
uses: actions/checkout@v2
with:
path: wf-shell
- run: cd wf-shell && wget https://raw.githubusercontent.com/WayfireWM/wayfire/master/uncrustify.ini
- run: cd wf-shell && git ls-files | grep "hpp$\|cpp$" | xargs ../uncrustify/build/uncrustify -c uncrustify.ini --no-backup --replace
- run: cd wf-shell && git diff --exit-code