Skip to content

Commit 2ec727c

Browse files
chore: update deprecated actions (#238)
1 parent 2a951a6 commit 2ec727c

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
env:
5555
VCPKG_ROOT: 'C:\vcpkg'
5656
steps:
57-
- uses: actions/checkout@master
57+
- uses: actions/checkout@v4
5858

59-
- uses: actions/cache@v3
59+
- uses: actions/cache@v4
6060
with:
6161
path: |
6262
~/.cargo/registry

.github/workflows/e2e.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
binary_path: target/release
2323
build_deps: scripts/workflows/provision-darwin-build.sh
2424
steps:
25-
- uses: actions/checkout@master
25+
- uses: actions/checkout@v4
2626

27-
- uses: actions/cache@v3
27+
- uses: actions/cache@v4
2828
with:
2929
path: |
3030
~/.cargo/git
@@ -39,7 +39,7 @@ jobs:
3939
run: cargo build --release --locked
4040

4141
- name: Upload Artifacts
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4343
with:
4444
name: quill-${{ matrix.os }}-rs
4545
path: ${{ matrix.binary_path }}/quill
@@ -49,7 +49,7 @@ jobs:
4949
outputs:
5050
matrix: ${{ steps.set-matrix.outputs.matrix }}
5151
steps:
52-
- uses: actions/checkout@v1
52+
- uses: actions/checkout@v4
5353
- id: set-matrix
5454
run: |
5555
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
@@ -66,9 +66,9 @@ jobs:
6666
env:
6767
E2E_TEST: tests-${{ matrix.test }}.bash
6868
steps:
69-
- uses: actions/checkout@v1
69+
- uses: actions/checkout@v4
7070
- name: Download quill binary
71-
uses: actions/download-artifact@v2
71+
uses: actions/download-artifact@v4
7272
with:
7373
name: quill-${{ matrix.os }}-rs
7474
path: /usr/local/bin

.github/workflows/release.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- os: ubuntu-20.04
2121
name: linux-musl
2222
target: x86_64-unknown-linux-musl
23-
cross: true
2423
target_file: target/x86_64-unknown-linux-musl/release/quill
2524
asset_name: quill-linux-x86_64-musl
2625
features: []
@@ -42,7 +41,6 @@ jobs:
4241
- os: ubuntu-20.04
4342
name: linux-arm32
4443
target: arm-unknown-linux-gnueabihf
45-
cross: true
4644
target_file: target/arm-unknown-linux-gnueabihf/release/quill
4745
asset_name: quill-linux-arm32
4846
features: [hsm]
@@ -54,9 +52,9 @@ jobs:
5452
env:
5553
VCPKG_ROOT: 'C:\vcpkg'
5654
steps:
57-
- uses: actions/checkout@master
55+
- uses: actions/checkout@v4
5856

59-
- uses: actions/cache@v3
57+
- uses: actions/cache@v4
6058
with:
6159
path: |
6260
~/.cargo/git
@@ -72,15 +70,16 @@ jobs:
7270
if: ${{ matrix.target }}
7371
run: rustup target add ${{ matrix.target }}
7472

75-
- name: Build
76-
uses: actions-rs/cargo@v1
73+
- uses: taiki-e/install-action@v2
7774
with:
78-
use-cross: ${{ matrix.cross }}
79-
command: build
80-
args: |
81-
${{ matrix.target && format('--target {0}', matrix.target) }}
82-
${{ matrix.features && format('--no-default-features --features "{0}"', join(matrix.features)) }}
83-
--release --locked
75+
tool: cross@0.2.5
76+
77+
- name: Build
78+
run: >
79+
cross build
80+
${{ matrix.target && format('--target {0}', matrix.target) }}
81+
${{ matrix.features && format('--no-default-features --features "{0}"', join(matrix.features)) }}
82+
--release --locked
8483
8584
- name: Upload binaries to release
8685
if: ${{ github.ref_type == 'tag' }}

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
check:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: Install shellcheck
1111
run: |
1212
mkdir $HOME/bin

0 commit comments

Comments
 (0)