test buckify #15
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: 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: cargo build --locked | |
- run: cargo test | |
- run: | | |
mkdir -p shim/third-party/rust/top | |
cat >> shim/third-party/rust/top/main.rs<<EOF | |
fn main() {} | |
EOF | |
cat >> shim/third-party/rust/Cargo.toml<<EOF | |
[workspace] | |
[package] | |
name = "rust-third-party" | |
version = "0.0.0" | |
publish = false | |
edition = "2021" | |
[[bin]] | |
name = "top" | |
path = "top/main.rs" | |
[dependencies] | |
anyhow = "1.0.65" | |
EOF | |
cargo run -- --third-party-dir shim/third-party/rust buckify | |
cat shim/third-party/rust/BUCK | |
shell: bash |