per-config build output using VPATH
All checks were successful
Rust / build-gnu-apt (pull_request) Successful in 5m13s
Rust / build-size-gnu-unstable (pull_request) Successful in 1m13s

based on https://make.mad-scientist.net/papers/multi-architecture-builds/
This commit is contained in:
Vinzenz Schroeter 2025-05-28 14:45:59 +02:00
parent 6c3792330d
commit c7d40b828b
4 changed files with 104 additions and 54 deletions

View file

@ -36,9 +36,9 @@ jobs:
run: output=$(git status --porcelain) && [ -z "$output" ]
- name: build example -- glibc release
run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=release
run: cd example && make clean && make LIBC=gnu LINK=dynamic PROFILE=release
- name: build example -- glibc debug
run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=debug
run: cd example && make clean && make LIBC=gnu LINK=dynamic PROFILE=debug
build-size-gnu-unstable:
runs-on: ubuntu-latest
@ -53,4 +53,5 @@ jobs:
run: rustup toolchain install nightly -t aarch64-unknown-linux-gnu -c rust-src --no-self-update
- name: build example -- glibc size-optimized
run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=size-optimized CARGO="rustup run nightly cargo" LTO=1
run: cd example && make clean
&& make LIBC=gnu LINK=dynamic PROFILE=size-optimized CARGO="rustup run nightly cargo" LTO=1