-
Notifications
You must be signed in to change notification settings - Fork 54
49 lines (42 loc) · 1.13 KB
/
bloat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"