Skip to content

Commit

Permalink
CI optimizations (#84)
Browse files Browse the repository at this point in the history
* CI: optimize caching

* CI: cancel previous run on a new commit

* CI: fix actions versions

* CI: add dependabot to update cargo deps and github actions versions

* CI: fix cancel action version

* CI: fix cancel action version again

* CI: fix cancel action version again again

* CI: add cancel-workflow-action everywhere

* CI: update actions versions

* CI: separate windows jobs

* CI: separate windows jobs 2
  • Loading branch information
TriplEight authored Sep 16, 2021
1 parent b30fdab commit 22b99ba
Show file tree
Hide file tree
Showing 6 changed files with 397 additions and 156 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Checkout sources
uses: actions/[email protected]
with:
fetch-depth: 50
- name: Run cargo audit
uses: actions-rs/audit-check@v1

- name: Run cargo audit
uses: actions-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 8 additions & 3 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ jobs:
env:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Checkout sources & submodules
uses: actions/checkout@master
uses: actions/checkout@v2.3.4
with:
fetch-depth: 5
submodules: recursive

- name: Install toolchain
uses: actions-rs/toolchain@master
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true

- name: Checking style
uses: actions-rs/cargo@master
uses: actions-rs/cargo@v1.0.1
with:
command: fmt
toolchain: stable
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,32 @@ jobs:
env:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Checkout sources & submodules
uses: actions/checkout@master
uses: actions/checkout@v2.3.4
with:
fetch-depth: 5
submodules: recursive

- name: Install toolchain
uses: actions-rs/toolchain@master
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true

- name: Checking clippy
uses: actions-rs/cargo@master
uses: actions-rs/cargo@v1.0.1
with:
command: clippy
toolchain: stable
args: --all

- name: Checking clippy
uses: actions-rs/cargo@master
uses: actions-rs/cargo@v1.0.1
with:
command: clippy
toolchain: stable
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
labels: []
schedule:
interval: "daily"
rebase-strategy: disabled
open-pull-requests-limit: 2

- package-ecosystem: github-actions
directory: "/"
labels: []
schedule:
interval: "daily"
rebase-strategy: disabled
open-pull-requests-limit: 2
Loading

0 comments on commit 22b99ba

Please sign in to comment.