2021-07-01 06:28:01 +00:00
|
|
|
name: linux
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2024-02-19 22:09:24 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-07-01 06:28:01 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
distro:
|
|
|
|
- alpine
|
|
|
|
- archlinux
|
|
|
|
- debian
|
|
|
|
- fedora
|
|
|
|
- opensuse
|
2022-07-06 09:50:21 +00:00
|
|
|
- gentoo
|
2023-07-16 13:05:42 +00:00
|
|
|
cpp_std: [c++20]
|
2021-07-01 06:28:01 +00:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: alexays/waybar:${{ matrix.distro }}
|
|
|
|
|
|
|
|
steps:
|
2023-01-17 07:56:26 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-01 06:28:01 +00:00
|
|
|
- name: configure
|
2024-05-28 20:03:22 +00:00
|
|
|
run: meson setup -Dman-pages=enabled -Dcpp_std=${{matrix.cpp_std}} build
|
2021-07-01 06:28:01 +00:00
|
|
|
- name: build
|
|
|
|
run: ninja -C build
|
2021-09-14 07:02:38 +00:00
|
|
|
- name: test
|
2023-03-13 00:50:19 +00:00
|
|
|
run: make test
|