upgrade rustsec to 0.30.0 #197
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 and test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-and-test: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, macos, windows] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- run: |- | |
echo CARGO_HOME=$GITHUB_WORKSPACE/.cargo >> $GITHUB_ENV | |
echo $GITHUB_WORKSPACE/target/debug >> $GITHUB_PATH | |
shell: bash | |
- run: cargo build --locked | |
- run: cargo test | |
- uses: dtolnay/install-buck2@latest | |
- name: Build example project (Ubuntu, macOS) | |
run: |- | |
cd example | |
reindeer --third-party-dir third-party buckify | |
buck2 init --git | |
buck2 run "//project:test" | |
if: matrix.os == 'ubuntu' || matrix.os == 'macos' | |
- name: Build example project (Windows) | |
run: |- | |
cd example | |
& reindeer --third-party-dir third-party buckify | |
& buck2 init --git | |
& buck2 run "//project:test" | |
if: matrix.os == 'windows' |