File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,39 @@ jobs:
302
302
- name : Run tests
303
303
run : sudo -ubuilder cargo test --workspace --all-targets --release
304
304
305
+ build-and-test-alpine :
306
+ runs-on : ubuntu-latest
307
+ container : alpine:latest
308
+
309
+ steps :
310
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
311
+
312
+ - name : Install dependencies
313
+ run : |
314
+ apk add cargo linux-pam-dev sudo tzdata coreutils-fmt
315
+
316
+ - name : Rust Cache
317
+ uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
318
+ with :
319
+ shared-key : " stable-alpine"
320
+
321
+ - name : Register rust problem matcher
322
+ run : echo "::add-matcher::.github/problem-matchers/rust.json"
323
+
324
+ - name : Reduce privileges
325
+ run : |
326
+ adduser --disabled-password builder
327
+ chown builder .
328
+
329
+ - name : Build
330
+ run : sudo -ubuilder cargo build --workspace --all-targets --release
331
+
332
+ - name : Run tests
333
+ run : |
334
+ # Alpine hasn't done usr-merge yet
335
+ sudo -ubuilder cargo test --workspace --all-targets --release \
336
+ -- --skip canonicalization --skip test_build_run_context
337
+
305
338
build-and-test-32bit :
306
339
runs-on : ubuntu-latest
307
340
You can’t perform that action at this time.
0 commit comments