Merge remote-tracking branch 'origin' into add-cargo-bloat-action #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: CI | |
on: | |
push: | |
branches: | |
- main | |
- add-cargo-bloat-action | |
tags: | |
- "v*" | |
pull_request: | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Add dependencies | |
run: | | |
sudo apt-get install --no-install-recommends libudev-dev | |
- name: Set up cargo cache | |
uses: actions/cache@v3 | |
continue-on-error: true | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target_ci/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo- | |
- name: CI | |
run: | | |
./ci.sh | |
cargo_bloat_host: | |
name: Cargo Bloat trouble host | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./host | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Run cargo bloat | |
uses: orf/cargo-bloat-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
cargo_bloat_host_macro: | |
name: Cargo Bloat trouble host macros | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./host-macro | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Run cargo bloat | |
uses: orf/cargo-bloat-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |