Merge pull request #382 from WangMengabc/master #424
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
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
name: bloat | |
jobs: | |
cargo_bloat: | |
name: ${{ matrix.build }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
build: [Linux, macOS, Win32-gnu, Win64-gnu] | |
include: | |
- build: Linux | |
os: ubuntu-latest | |
- build: macOS | |
os: macOS-latest | |
- build: Win32-gnu | |
os: windows-latest | |
rust: stable-i686-pc-windows-gnu | |
target: i686-pc-windows-gnu | |
- build: Win64-gnu | |
os: windows-latest | |
rust: stable-x86_64-pc-windows-gnu | |
target: x86_64-pc-windows-gnu | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust || 'stable' }} | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
- name: Run cargo bloat | |
continue-on-error: true | |
uses: orf/cargo-bloat-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
exclude_packages: "os_info" |