Skip to content

Test on alpine linux for musl #1177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,39 @@ jobs:
- name: Run tests
run: sudo -ubuilder cargo test --workspace --all-targets --release

build-and-test-alpine:
runs-on: ubuntu-latest
container: alpine:latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Install dependencies
run: |
apk add cargo linux-pam-dev sudo tzdata coreutils-fmt

- name: Rust Cache
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
with:
shared-key: "stable-alpine"

- name: Register rust problem matcher
run: echo "::add-matcher::.github/problem-matchers/rust.json"

- name: Reduce privileges
run: |
adduser --disabled-password builder
chown builder .

- name: Build
run: sudo -ubuilder cargo build --workspace --all-targets --release

- name: Run tests
run: |
# Alpine hasn't done usr-merge yet
sudo -ubuilder cargo test --workspace --all-targets --release \
-- --skip canonicalization --skip test_build_run_context

build-and-test-32bit:
runs-on: ubuntu-latest

Expand Down
Loading