Skip to content

Commit

Permalink
Merge pull request #188 from fermyon/actions-update
Browse files Browse the repository at this point in the history
bump action versions
  • Loading branch information
bacongobbler committed Mar 19, 2024
2 parents 4639065 + 600ddd9 commit c70c74f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
env:
CARGO_VET_VERSION: 0.5.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable && rustup default stable
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ jobs:
steps:
# install dependencies
- name: Install latest Rust stable toolchain
shell: bash
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt
rustup default ${{ env.RUST_VERSION }}
- name: "Install Wasm Rust target"
run: rustup target add wasm32-wasi && rustup target add wasm32-unknown-unknown
shell: bash
- uses: Swatinem/rust-cache@v2
with:
shared-key: "${{ runner.os }}-full-${{ hashFiles('./Cargo.lock') }}"

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

- name: Cargo Format
run:
Expand All @@ -62,18 +60,16 @@ jobs:
steps:
# install dependencies
- name: Install latest Rust stable toolchain
shell: bash
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt
rustup default ${{ env.RUST_VERSION }}
- name: "Install Wasm Rust target"
run: rustup target add wasm32-wasi && rustup target add wasm32-unknown-unknown
shell: bash
- uses: Swatinem/rust-cache@v2
with:
shared-key: "${{ runner.os }}-full-${{ hashFiles('./Cargo.lock') }}"

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

- name: Cargo Build
run: cargo build --workspace --release --all-targets --all-features
Expand All @@ -90,22 +86,18 @@ jobs:
steps:
# install dependencies
- name: Install latest Rust stable toolchain
shell: bash
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt
rustup default ${{ env.RUST_VERSION }}
- name: "Install Wasm Rust target"
run: rustup target add wasm32-wasi && rustup target add wasm32-unknown-unknown
shell: bash
- uses: Swatinem/rust-cache@v2
with:
shared-key: "${{ runner.os }}-full-${{ hashFiles('./Cargo.lock') }}"

- uses: actions/checkout@v3

- uses: actions/checkout@v4
- name: Cargo Unit Tests
run: |
cargo test --all --no-fail-fast -- --nocapture
run: cargo test --all --no-fail-fast -- --nocapture
env:
CARGO_INCREMENTAL: 0
RUST_LOG: trace
RUST_LOG: trace
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
targetDir: "target/release",
}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Rust toolchain
shell: bash
run: |
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
tar czf cloud-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz cloud.license cloud${{ matrix.config.extension }}
- name: Upload build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cloud
path: _dist/cloud-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
Expand All @@ -147,7 +147,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: set the release version (main)
shell: bash
Expand All @@ -159,7 +159,7 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: download release assets
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: cloud

Expand All @@ -168,7 +168,7 @@ jobs:
ls -lh
sha256sum cloud*.tar.gz > checksums-${{ env.RELEASE_VERSION }}.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cloud
path: checksums-${{ env.RELEASE_VERSION }}.txt
Expand All @@ -187,7 +187,7 @@ jobs:
REPO_OWNER: ${{ github.repository_owner }}
run: bash .plugin-manifests/generate-manifest.sh ${{ env.RELEASE_VERSION }} checksums-${{ env.RELEASE_VERSION }}.txt > cloud.json

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cloud
path: cloud.json
Expand All @@ -206,10 +206,10 @@ jobs:
needs: checksums_and_manifests
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: download release assets
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: cloud

Expand All @@ -232,7 +232,7 @@ jobs:
delete_release: true

- name: Recreate canary tag and release
uses: ncipollo/release-action@v1.12.0
uses: ncipollo/release-action@v1.14.0
with:
tag: canary
allowUpdates: true
Expand Down

0 comments on commit c70c74f

Please sign in to comment.