ci: build in alpine

This commit is contained in:
🪞👃🪞 2025-04-11 20:46:17 +03:00
parent 6536f1612e
commit 8e5c4d0aba

View file

@ -2,14 +2,16 @@ on: [push]
jobs:
build:
container:
image: nixos/nix:latest
image: alpine:edge
steps:
- run: nix-channel --list && nix-channel --update
- run: nix-shell --cores 4 -p git --command 'git clone --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .'
- run: whoami && pwd && ls -al
- run: nix-shell --cores 4 --command 'cloc src/ && cloc .' .forgejo/workflows/build.nix
- run: nix-shell --cores 4 --command 'rustup install nightly && cargo version -vv' .forgejo/workflows/build.nix
- run: nix-shell --cores 4 --command 'just cov-md' .forgejo/workflows/build.nix
- run: nix-shell --cores 4 --command 'just doc' .forgejo/workflows/build.nix
- run: nix-shell --cores 4 --command 'just build-release' .forgejo/workflows/build.nix
#- run: nix-shell -p docker --command "docker run --security-opt seccomp=unconfined -v $PWD:/volume xd009642/tarpaulin cargo tarpaulin --out Html --all-features"
- run: apk update
- run: apk add tree rustup git just cloc build-base clang20-dev pipewire-jack-dev lilv-dev serd-dev
- run: git clone --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
- run: whoami && pwd && tree
- run: cloc src/ && cloc .
- run: rustup-init -y
- run: source "$HOME/.cargo/env" && rustup install nightly && rustup default nightly && cargo version -vv
#- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just doc
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just test
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just build-release
- run: tree