split jobs?
This commit is contained in:
parent
262d0edcd7
commit
808c9d33af
29
.github/workflows/rust.yml
vendored
29
.github/workflows/rust.yml
vendored
|
@ -23,15 +23,7 @@ jobs:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: sudo apt-get install -qy cargo rust-clippy liblzma-dev gcc make pkgconf
|
run: sudo apt-get install -qy cargo rust-clippy liblzma-dev gcc make pkgconf
|
||||||
|
|
||||||
- name: Run Clippy
|
build-gnu-apt:
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
- name: generate bindings
|
|
||||||
run: ./generate-binding.sh
|
|
||||||
- name: check that generated files did not change
|
|
||||||
run: output=$(git status --porcelain) && [ -z "$output" ]
|
|
||||||
|
|
||||||
build-stable:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -41,15 +33,23 @@ jobs:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: sudo apt-get install -qy cargo rust-clippy liblzma-dev gcc make pkgconf
|
run: sudo apt-get install -qy cargo rust-clippy liblzma-dev gcc make pkgconf
|
||||||
|
|
||||||
|
- name: Run Clippy
|
||||||
|
run: cargo clippy
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
|
|
||||||
|
- name: generate bindings
|
||||||
|
run: ./generate-binding.sh
|
||||||
|
- name: check that generated files did not change
|
||||||
|
run: output=$(git status --porcelain) && [ -z "$output" ]
|
||||||
|
|
||||||
- name: build example -- glibc release
|
- name: build example -- glibc release
|
||||||
run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=release
|
run: cd example && make clean && make TARGET=aarch64-unknown-linux-gnu PROFILE=release
|
||||||
- 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
|
||||||
|
|
||||||
build-musl:
|
build-musl-stable:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -58,15 +58,15 @@ jobs:
|
||||||
run: sudo apt-get update -qq
|
run: sudo apt-get update -qq
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: sudo apt-get install -qy liblzma-dev gcc make pkgconf musl-dev musl-tools rustup
|
run: sudo apt-get install -qy liblzma-dev gcc make pkgconf musl-dev musl-tools rustup
|
||||||
- name: install musl rust target
|
- name: install rust target
|
||||||
run: rustup toolchain install nightly -t aarch64-unknown-linux-musl --no-self-update
|
run: rustup toolchain install stable -t 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"
|
||||||
|
|
||||||
build-size:
|
build-size-unstable:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -75,9 +75,6 @@ jobs:
|
||||||
run: sudo apt-get update -qq
|
run: sudo apt-get update -qq
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: sudo apt-get install -qy liblzma-dev gcc make pkgconf musl-dev musl-tools rustup
|
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 rust targets
|
- name: install rust targets
|
||||||
run: rustup toolchain install nightly -t aarch64-unknown-linux-musl -t aarch64-unknown-linux-gnu --no-self-update
|
run: rustup toolchain install nightly -t aarch64-unknown-linux-musl -t aarch64-unknown-linux-gnu --no-self-update
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue