split jobs?
Some checks failed
Rust / clippy (pull_request) Successful in 2m36s
Rust / build-stable (pull_request) Successful in 2m47s
Rust / build-musl (pull_request) Failing after 21s
Rust / build-size (pull_request) Failing after 29s

This commit is contained in:
Vinzenz Schroeter 2025-05-03 22:32:47 +02:00
parent bd1095a037
commit 0bb495a2fd

View file

@ -13,10 +13,8 @@ env:
RUSTFLAGS: "-Dwarnings" RUSTFLAGS: "-Dwarnings"
jobs: jobs:
build: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -33,6 +31,16 @@ jobs:
- name: check that generated files did not change - name: check that generated files did not change
run: output=$(git status --porcelain) && [ -z "$output" ] run: output=$(git status --porcelain) && [ -z "$output" ]
build-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update repos
run: sudo apt-get update -qq
- name: Install toolchain
run: sudo apt-get install -qy cargo rust-clippy liblzma-dev gcc make pkgconf
- name: build - name: build
run: cargo build run: cargo build
@ -41,17 +49,40 @@ jobs:
- name: build example -- glibc debug - name: build example -- glibc debug
run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=debug run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=debug
- name: install musl dependencies build-musl:
run: sudo apt-get install -y musl-dev musl-tools rustup runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update repos
run: sudo apt-get update -qq
- name: Install toolchain
run: sudo apt-get install -qy liblzma-dev gcc make pkgconf musl-dev musl-tools rustup
- name: install musl rust target - name: install musl rust target
run: rustup toolchain install stable-aarch64-unknown-linux-musl run: rustup toolchain install aarch64-unknown-linux-musl --no-self-update
- name: build example -- musl release - name: build example -- musl release
run: cd example && make clean && make TARGET=aarch64-unknown-linux-musl PROFILE=release MUSL=1 CARGO="rustup run stable cargo" run: cd example && make clean && make TARGET=aarch64-unknown-linux-musl PROFILE=release MUSL=1 CARGO="rustup run stable cargo"
- name: build example -- musl debug - name: build example -- musl debug
run: cd example && make clean && make TARGET=aarch64-unknown-linux-musl PROFILE=debug MUSL=1 CARGO="rustup run stable cargo" run: cd example && make clean && make TARGET=aarch64-unknown-linux-musl PROFILE=debug MUSL=1 CARGO="rustup run stable cargo"
- name: install unstable rust build-size:
run: rustup toolchain install nightly-aarch64-unknown-linux-gnu && rustup toolchain install nightly-aarch64-unknown-linux-musl runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update repos
run: sudo apt-get update -qq
- name: Install toolchain
run: sudo apt-get install -qy liblzma-dev gcc make pkgconf musl-dev musl-tools rustup
- name: install rust nightly
run: rustup default nightly
- name: install musl rust target
run: rustup toolchain install aarch64-unknown-linux-musl --no-self-update
- name: install gnu rust target
run: rustup toolchain install aarch64-unknown-linux-gnu --no-self-update
- name: build example -- glibc size-optimized - 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" run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=size-optimized CARGO="rustup run nightly cargo"
- name: build example -- musl size-optimized - name: build example -- musl size-optimized