From 2a94287f359cf739a3a73f366ff88c6a2d986ae4 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 16 Feb 2025 14:09:11 +0100 Subject: [PATCH] build project in CI --- .github/workflows/rust.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fbf93a9..0743201 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,21 +25,15 @@ jobs: - name: Install rust toolchain run: sudo apt-get install -qy cargo rust-clippy - name: install lzma - run: sudo apt-get update && sudo apt-get install -y liblzma-dev + run: sudo apt-get install -qy liblzma-dev + - name: install dotnet + run: dotnet-sdk-8.0 ca-certificates libc6 libgcc-s1 libicu74 liblttng-ust1 libssl3 libstdc++6 libunwind8 zlib1g - - name: Run Clippy - run: cargo clippy --all-targets --all-features - - - name: build default features - run: cargo build --all --verbose - - name: build default features -- examples - run: cargo build --examples --verbose - - name: test default features - run: cargo test --all --verbose + - name: generate bindings + run: ./generate-binding.sh - - name: build all features - run: cargo build --all-features --verbose - - name: build all features -- examples - run: cargo build --all-features --examples --verbose - - name: test all features - run: cargo test --all --all-features --verbose + - name: check that generated files did not change + run: output=$(git status --porcelain) && [ -z "$output" ] + + - name: build solution + run: dotnet publish