aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorジムワルド <zimward@zimward.moe>2025-07-17 20:05:36 +0000
committerGitHub <noreply@github.com>2025-07-17 20:05:36 +0000
commit9c09bc730f37d1d449cc756044ad275010907e4c (patch)
tree376e99c4739a8a4930388a79d63db979db8f2502
parent7b065f8618f63b7cf761ebe05a2cebd556113a6c (diff)
downloadniri-9c09bc730f37d1d449cc756044ad275010907e4c.tar.gz
niri-9c09bc730f37d1d449cc756044ad275010907e4c.tar.bz2
niri-9c09bc730f37d1d449cc756044ad275010907e4c.zip
ci: add musl/alpine build (#2065)
* ci: add musl build * Update .github/workflows/ci.yml * Update .github/workflows/ci.yml --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
-rw-r--r--.github/workflows/ci.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bdf78d78..8878258b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,6 +11,7 @@ env:
RUN_SLOW_TESTS: 1
DEPS_APT: curl gcc clang libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev libpipewire-0.3-dev libpango1.0-dev libdisplay-info-dev
DEPS_DNF: cargo gcc clang libudev-devel libgbm-devel libxkbcommon-devel wayland-devel libinput-devel dbus-devel systemd-devel libseat-devel pipewire-devel pango-devel cairo-gobject-devel libdisplay-info-devel
+ DEPS_APK: cargo clang-libclang eudev-dev glib-dev libdisplay-info-dev libinput-dev libseat-dev libxkbcommon-dev mesa-dev pango-dev pipewire-dev
jobs:
build:
@@ -70,6 +71,28 @@ jobs:
- name: Test
run: cargo test --all --exclude niri-visual-tests ${{ matrix.release-flag }} -- --nocapture
+ build-musl:
+ strategy:
+ fail-fast: false
+
+ name: alpine musl
+ runs-on: ubuntu-latest
+ steps:
+ - uses: jirutka/setup-alpine@v1
+ with:
+ branch: v3.22
+ packages: ${{ env.DEPS_APK }}
+
+ - uses: actions/checkout@v4
+ with:
+ show-progress: false
+
+ - uses: Swatinem/rust-cache@v2
+
+ - name: Build
+ shell: alpine.sh {0}
+ run: cargo build --no-default-features --features dbus,xdp-gnome-screencast
+
# Job that runs randomized tests for a longer period of time.
randomized-tests:
strategy: