summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authororhun <orhun@archlinux.org>2021-05-29 15:02:31 +0300
committerorhun <orhun@archlinux.org>2021-05-29 15:02:31 +0300
commitbd132446d6d870b33e2105361cefa93aeef67f30 (patch)
treecd5dfc0b93f0e49b28bede4f8900a26370de3d25
parentdc864452a7cf5310eab9cd9a6b0fcbc82077aa78 (diff)
chore: Split audit workflow into two
-rw-r--r--.github/workflows/audit.yml31
-rw-r--r--.github/workflows/bloat.yml31
2 files changed, 34 insertions, 28 deletions
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index c5f891b..b681471 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -1,10 +1,9 @@
name: Security Audit
on:
- push:
- paths:
- - "**/Cargo.toml"
- - "**/Cargo.lock"
+ schedule:
+ - cron: '0 0 * * 0'
+
jobs:
audit:
name: Audit
@@ -16,27 +15,3 @@ jobs:
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
-
- bloat:
- name: Bloat
- runs-on: ubuntu-18.04
- steps:
- - name: Install dependencies
- run: |
- sudo apt-get update
- sudo apt-get install -y \
- --no-install-recommends \
- --allow-unauthenticated libgpgme-dev \
- libxcb-shape0-dev libxcb-xfixes0-dev
- - name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- profile: minimal
- override: true
- - name: Checkout the repository
- uses: actions/checkout@master
- - name: Run cargo-bloat
- uses: orf/cargo-bloat-action@v1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/bloat.yml b/.github/workflows/bloat.yml
new file mode 100644
index 0000000..3ee5067
--- /dev/null
+++ b/.github/workflows/bloat.yml
@@ -0,0 +1,31 @@
+name: Bloat Check
+
+on:
+ push:
+ paths:
+ - "**/Cargo.toml"
+ - "**/Cargo.lock"
+jobs:
+ bloat:
+ name: Bloat
+ runs-on: ubuntu-18.04
+ steps:
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ --no-install-recommends \
+ --allow-unauthenticated libgpgme-dev \
+ libxcb-shape0-dev libxcb-xfixes0-dev
+ - name: Install Rust toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ profile: minimal
+ override: true
+ - name: Checkout the repository
+ uses: actions/checkout@master
+ - name: Run cargo-bloat
+ uses: orf/cargo-bloat-action@v1
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}