From c6b724c817c5f8ba91df83e28995d42a34b517e0 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 29 Jun 2022 21:59:31 -0500 Subject: Create check.yml --- .github/workflows/check.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/check.yml (limited to '.github') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..6010bf23 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,12 @@ +on: push +name: Clippy check +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - run: rustup component add clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features -- cgit v1.2.3 From ed30964b4946618f84bf42bd6901d678df8ce6be Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 29 Jun 2022 22:06:44 -0500 Subject: cache target --- .github/workflows/check.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6010bf23..61216863 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -4,6 +4,10 @@ jobs: clippy_check: runs-on: ubuntu-latest steps: + - name: Cache + uses: actions/cache@v3.0.4 + with: + path: target - uses: actions/checkout@v1 - run: rustup component add clippy - uses: actions-rs/clippy-check@v1 -- cgit v1.2.3 From 6dfd8c01ea53af87f7d57838b6e6c496b230a8f7 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 29 Jun 2022 22:06:47 -0500 Subject: Nightly clippy --- .github/workflows/check.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6010bf23..1e51c32e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -5,7 +5,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - run: rustup component add clippy + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + components: clippy + override: true - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3 From ff06092f808792c9d6046c574fe238b403a82791 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 29 Jun 2022 22:09:07 -0500 Subject: Add key to cache workflow --- .github/workflows/check.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 43aae8e1..fe60ffd2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,6 +8,7 @@ jobs: uses: actions/cache@v3.0.4 with: path: target + key: target - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 with: -- cgit v1.2.3 From 37d854c799236650da3deb025d8b32693531a27f Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 29 Jun 2022 22:10:20 -0500 Subject: Update check.yml --- .github/workflows/check.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fe60ffd2..f6c4c5d9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -4,11 +4,15 @@ jobs: clippy_check: runs-on: ubuntu-latest steps: - - name: Cache - uses: actions/cache@v3.0.4 + - uses: actions/cache@v3 with: - path: target - key: target + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 with: -- cgit v1.2.3