security: update gix-worktree-state to 0.17.0 #283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build OBS Service Cargo | |
on: | |
push: | |
paths: | |
- '**.rs' | |
- '**/Cargo.toml' | |
- '!**.md' | |
pull_request: | |
paths: | |
- '**.rs' | |
- '**/Cargo.toml' | |
- '!**.md' | |
env: | |
CARGO_TERM_COLOR: always | |
TOOLCHAIN_VERSION: 1.83 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: opensuse/tumbleweed:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies and Rust | |
run: | | |
zypper --non-interactive -vvv ref -f | |
zypper --non-interactive -vvv dup | |
zypper --non-interactive -vvv in libzstd-devel rustup openssl-devel | |
# Seems to be a rustup inconsistency | |
rustup show | |
- name: Build | |
run: | | |
cargo update | |
cargo build --release --all-features | |
- name: Check formatting | |
run: | | |
cargo fmt -- --check || true | |
- name: Check clippy | |
run: | | |
cargo clippy | |
cargo clippy --tests | |
- name: Install cargo-vendor-filterer | |
run: | | |
cargo install cargo-vendor-filterer | |
- name: Run sample projects to test | |
run: | | |
export PATH="${PATH}:${HOME}/.cargo/bin" | |
echo "${PATH}" | |
cargo test --release -- --test-threads=1 |