Skip to content

Commit

Permalink
chore: update deprecated actions (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity authored Aug 15, 2024
1 parent 2a951a6 commit 2ec727c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
env:
VCPKG_ROOT: 'C:\vcpkg'
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
binary_path: target/release
build_deps: scripts/workflows/provision-darwin-build.sh
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/git
Expand All @@ -39,7 +39,7 @@ jobs:
run: cargo build --release --locked

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: quill-${{ matrix.os }}-rs
path: ${{ matrix.binary_path }}/quill
Expand All @@ -49,7 +49,7 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- id: set-matrix
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
Expand All @@ -66,9 +66,9 @@ jobs:
env:
E2E_TEST: tests-${{ matrix.test }}.bash
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Download quill binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: quill-${{ matrix.os }}-rs
path: /usr/local/bin
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- os: ubuntu-20.04
name: linux-musl
target: x86_64-unknown-linux-musl
cross: true
target_file: target/x86_64-unknown-linux-musl/release/quill
asset_name: quill-linux-x86_64-musl
features: []
Expand All @@ -42,7 +41,6 @@ jobs:
- os: ubuntu-20.04
name: linux-arm32
target: arm-unknown-linux-gnueabihf
cross: true
target_file: target/arm-unknown-linux-gnueabihf/release/quill
asset_name: quill-linux-arm32
features: [hsm]
Expand All @@ -54,9 +52,9 @@ jobs:
env:
VCPKG_ROOT: 'C:\vcpkg'
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/git
Expand All @@ -72,15 +70,16 @@ jobs:
if: ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}

- name: Build
uses: actions-rs/cargo@v1
- uses: taiki-e/install-action@v2
with:
use-cross: ${{ matrix.cross }}
command: build
args: |
${{ matrix.target && format('--target {0}', matrix.target) }}
${{ matrix.features && format('--no-default-features --features "{0}"', join(matrix.features)) }}
--release --locked
tool: [email protected]

- name: Build
run: >
cross build
${{ matrix.target && format('--target {0}', matrix.target) }}
${{ matrix.features && format('--no-default-features --features "{0}"', join(matrix.features)) }}
--release --locked
- name: Upload binaries to release
if: ${{ github.ref_type == 'tag' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install shellcheck
run: |
mkdir $HOME/bin
Expand Down

0 comments on commit 2ec727c

Please sign in to comment.