Run on main branch to utilize cache

This commit is contained in:
Joel Wachsler 2022-07-11 02:35:18 +02:00
parent 7f7c372e59
commit 9e6ce59d8b
2 changed files with 10 additions and 6 deletions

View File

@ -3,7 +3,6 @@ on:
push:
branches:
- '**'
- '!main'
jobs:
test:
runs-on: ubuntu-22.04
@ -74,3 +73,13 @@ jobs:
with:
command: clippy
args: -- -D warnings
extra:
runs-on: ubuntu-22.04
steps:
# build and cache this here in order to reuse it's cache in feature branches
- name: Install cargo-edit
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-edit
version: 0.9.1

View File

@ -9,11 +9,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-release-${{ hashFiles('Cargo.lock') }}
- name: Install latest stable
uses: actions-rs/toolchain@v1
with: