diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d0f1da3..f3763b6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,11 +30,6 @@ jobs: - name: 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 run: cd example && make -r clean-all && make -r LIBC=gnu LINK=dynamic PROFILE=release - name: build example -- glibc debug @@ -52,6 +47,14 @@ jobs: - name: install rust targets run: rustup toolchain install nightly -t aarch64-unknown-linux-gnu -c rust-src --no-self-update + - name: install csbindgen + run: rustup run nightly cargo install cbindgen@0.29 + + - 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 size_optimized run: cd example && make clean-all -r && make -r LIBC=gnu LINK=dynamic PROFILE=size_optimized CARGO="rustup run nightly cargo" LTO=1