Skip to content

Commit

Permalink
ci: update actions versions (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
thenextman authored Apr 3, 2024
1 parent c8f6fe5 commit a3ec56d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check formatting
run: cargo xtask check fmt -v
Expand All @@ -40,10 +40,10 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.cargo/local_root/bin
key: ${{ runner.os }}-bin-${{ github.job }}-${{ hashFiles('xtask/src/bin_version.rs') }}
Expand All @@ -69,13 +69,13 @@ jobs:
runner: ubuntu-22.04 # 22.04 because we need a recent wabt version

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rust cache
uses: Swatinem/rust-cache@v2.3.0
uses: Swatinem/rust-cache@v2.7.3

- name: Binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.cargo/local_root/bin
key: ${{ runner.os }}-bin-${{ github.job }}-${{ hashFiles('xtask/src/bin_version.rs') }}
Expand Down Expand Up @@ -106,15 +106,15 @@ jobs:
needs: formatting

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rust cache
uses: Swatinem/rust-cache@v2.3.0
uses: Swatinem/rust-cache@v2.7.3
with:
workspaces: fuzz -> target

- name: Binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.cargo/local_root/bin
key: ${{ runner.os }}-bin-${{ github.job }}-${{ hashFiles('xtask/src/bin_version.rs') }}
Expand All @@ -135,13 +135,13 @@ jobs:
needs: formatting

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rust cache
uses: Swatinem/rust-cache@v2.3.0
uses: Swatinem/rust-cache@v2.7.3

- name: Binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.cargo/local_root/bin
key: ${{ runner.os }}-bin-${{ github.job }}-${{ hashFiles('xtask/src/bin_version.rs') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rust cache
uses: Swatinem/rust-cache@v2.3.0
uses: Swatinem/rust-cache@v2.7.3

- name: Prepare runner
run: cargo xtask cov install -v
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
AZURE_STORAGE_KEY: ${{ secrets.CORPUS_AZURE_STORAGE_KEY }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download fuzzing corpus
run: cargo xtask fuzz corpus-fetch -v

- name: Save corpus
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
./fuzz/corpus
Expand All @@ -44,10 +44,10 @@ jobs:
target: [ pdu_decoding, rle_decompression, bitmap_stream, cliprdr_format, channel_processing ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download corpus
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
Expand All @@ -61,12 +61,12 @@ jobs:
tree ./fuzz/artifacts
- name: Rust cache
uses: Swatinem/rust-cache@v2.3.0
uses: Swatinem/rust-cache@v2.7.3
with:
workspaces: fuzz -> target

- name: Binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.cargo/local_root/bin
key: ${{ runner.os }}-bin-${{ github.job }}-${{ hashFiles('xtask/src/bin_version.rs') }}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Upload minified corpus
if: ${{ always() && !cancelled() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 7
name: minified-corpus
Expand All @@ -115,10 +115,10 @@ jobs:
AZURE_STORAGE_KEY: ${{ secrets.CORPUS_AZURE_STORAGE_KEY }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download updated corpus
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: minified-corpus
path: ./fuzz/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: 'Dry run'
required: true
type: boolean
default: 'true'
default: true
schedule:
- cron: '48 3 * * 1' # 3:48 AM UTC every Monday

Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup wasm-pack
shell: bash
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
Get-ChildItem -Path ./web-client/ -Recurse *.tgz | ForEach { Copy-Item $_ "./npm-packages" }
- name: Upload package artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npm
path: npm-packages/*.tgz
Expand All @@ -87,7 +87,7 @@ jobs:

steps:
- name: Download NPM packages artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: npm
path: npm-packages
Expand Down

0 comments on commit a3ec56d

Please sign in to comment.