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