summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2022-11-01 20:02:41 +0100
committerJan-Erik Rediger <janerik@fnordig.de>2022-11-01 20:02:41 +0100
commit5af81fa0c43859e0b9f7fcdaf018306c6b53a9c5 (patch)
tree468196e01189a7eb47cafe484bed4eb27d3d62e3
parentd588740dd9a3397b600c54c8b43084b9d655398f (diff)
Update actions
-rw-r--r--.github/workflows/deploy.yml19
-rw-r--r--.github/workflows/tests.yml4
2 files changed, 8 insertions, 15 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 46b3276..1efa537 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -37,16 +37,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
- uses: actions/checkout@v2
-
- # Cache files between builds
- - name: Setup | Cache Cargo
- uses: actions/cache@v2
- with:
- path: |
- ~/.cargo/registry
- ~/.cargo/git
- key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+ uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
@@ -56,6 +47,8 @@ jobs:
profile: minimal
target: ${{ matrix.target }}
+ - uses: Swatinem/rust-cache@v1
+
- name: Setup | musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt install -y musl-tools
@@ -92,7 +85,7 @@ jobs:
cd -
- name: Post Setup | Upload artifacts
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v3
with:
name: ${{ env.CRATE_NAME }}-${{ steps.extract_tag.outputs.tag }}-${{ matrix.name }}
path: target/stage/*
@@ -104,12 +97,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup | Artifacts
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v3
- name: Setup | Release notes
run: |
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index ead796e..8abcc60 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -15,7 +15,7 @@ jobs:
rust: [stable]
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v3
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
@@ -33,7 +33,7 @@ jobs:
name: Checking fmt and docs
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable