forge
Explore
Log in

Don't you dare go Hollow

Add musl/alpine build (#2065)

Browse files at this commit

9c09bc730f37d1d449cc756044ad275010907e4cUnverifiedジムワルド and Ivan MolodetskikhParent: 7b065f8
  • ci
    • add musl/alpine build (#2065)
Show full message
ci: add musl/alpine build (#2065)

* ci: add musl build

* Update .github/workflows/ci.yml

* Update .github/workflows/ci.yml

---------
.github/workflows/ci.ymlmodified+23 -0
@@ -11,6 +11,7 @@ env:
11 RUN_SLOW_TESTS: 111 RUN_SLOW_TESTS: 1
12 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-dev12 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
13 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-devel13 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
14+ DEPS_APK: cargo clang-libclang eudev-dev glib-dev libdisplay-info-dev libinput-dev libseat-dev libxkbcommon-dev mesa-dev pango-dev pipewire-dev
14 15
15 jobs:16 jobs:
16 build:17 build:
@@ -70,6 +71,28 @@ jobs:
70 - name: Test71 - name: Test
71 run: cargo test --all --exclude niri-visual-tests ${{ matrix.release-flag }} -- --nocapture72 run: cargo test --all --exclude niri-visual-tests ${{ matrix.release-flag }} -- --nocapture
72 73
74+ build-musl:
75+ strategy:
76+ fail-fast: false
77+
78+ name: alpine musl
79+ runs-on: ubuntu-latest
80+ steps:
81+ - uses: jirutka/setup-alpine@v1
82+ with:
83+ branch: v3.22
84+ packages: ${{ env.DEPS_APK }}
85+
86+ - uses: actions/checkout@v4
87+ with:
88+ show-progress: false
89+
90+ - uses: Swatinem/rust-cache@v2
91+
92+ - name: Build
93+ shell: alpine.sh {0}
94+ run: cargo build --no-default-features --features dbus,xdp-gnome-screencast
95+
73 # Job that runs randomized tests for a longer period of time.96 # Job that runs randomized tests for a longer period of time.
74 randomized-tests:97 randomized-tests:
75 strategy:98 strategy: