Update dependabot.yml for dependency version updates #66
Workflow file for this run
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: Rust | |
on: | |
push: | |
pull_request: | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
complete: | |
if: always() | |
needs: [build-and-test, publish-dry-run] | |
runs-on: ubuntu-latest | |
steps: | |
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
run: exit 1 | |
build-and-test: | |
strategy: | |
matrix: | |
sys: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
runs-on: ${{ matrix.sys.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: stellar/actions/rust-cache@main | |
- run: rustup update | |
- run: rustup target add ${{ matrix.sys.target }} | |
- run: cargo install --target-dir ~/.cargo/target --locked --version 0.5.16 cargo-hack | |
- run: git submodule update --init --recursive | |
- run: cargo hack build --target ${{ matrix.sys.target }} | |
- run: cargo hack test --target ${{ matrix.sys.target }} | |
publish-dry-run: | |
if: startsWith(github.head_ref, 'release/') | |
strategy: | |
matrix: | |
sys: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
cargo-hack-feature-options: '' | |
uses: stellar/actions/.github/workflows/rust-publish-dry-run.yml@main | |
with: | |
runs-on: ${{ matrix.sys.os }} | |
cargo-hack-feature-options: ${{ matrix.sys.cargo-hack-feature-options }} | |
target: ${{ matrix.sys.target }} |