fix(-A): don't attempt to remove something you just installed when `-… #408
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: | |
branches: [master] | |
paths: | |
- "rust/**/Cargo.toml" | |
- "rust/**/*.rs" | |
- ".github/workflows/rust.yaml" | |
pull_request: | |
paths: | |
- "rust/**/Cargo.toml" | |
- "rust/**/*.rs" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Tests | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/archlinux/archlinux:latest | |
steps: | |
- name: Install Rust | |
run: pacman -Sy rust gcc glibc openssl pkgconf --noconfirm | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "rust -> target" | |
- name: Build and Test | |
run: | | |
cd rust/ | |
cargo test --locked |