Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
Update all actions to the latest versions and replace the no longer
maintained actions-rs actions.
  • Loading branch information
HDauven committed Nov 22, 2023
1 parent a00c246 commit e61ab00
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 49 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker_image_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: docker build -t rusk .
Expand All @@ -21,7 +21,7 @@ jobs:
run: docker save rusk:latest -o rusk_image.tar

- name: Upload Docker image as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: rusk-image
path: rusk_image.tar
38 changes: 7 additions & 31 deletions .github/workflows/dusk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,14 @@ name: Continuous integration
jobs:
analyze:
name: Dusk Analyzer
runs-on: core
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/dusk-network/cargo-dusk-analyzer
- uses: actions-rs/cargo@v1
with:
command: dusk-analyzer
uses: dusk-network/.github/.github/workflows/dusk-analysis.yml@main

test_nightly:
name: Nightly tests
runs-on: core
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
- run: rustup component add rustfmt
- run: rustup target add wasm32-unknown-unknown
- run: rustup component add rust-src
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: >
RUSK_PROFILE_PATH="/var/opt/build-cache"
RUSK_KEEP_KEYS="1"
Expand All @@ -42,7 +24,7 @@ jobs:
RUSK_PROFILE_PATH: "/var/opt/build-cache"
run: make clippy
- name: "Upload Rusk Artifact"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: rusk-artifact
path: ./target/release/rusk
Expand All @@ -51,12 +33,6 @@ jobs:
name: Rustfmt
runs-on: core
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: cargo fmt --all -- --check
12 changes: 4 additions & 8 deletions .github/workflows/profile_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache .rusk profile
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-rusk-profile-v2
with:
path: ${{ github.workspace }}/.rusk
key: ${{ runner.os }}-build-${{ env.cache-name }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}

- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
# This should not be required. But the workflow fails if we don't include it
- run: rustup component add rustfmt
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: RUSK_PROFILE_PATH=$GITHUB_WORKSPACE make keys
9 changes: 2 additions & 7 deletions .github/workflows/wallet_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.dusk_blockchain_ref }}

- name: Install dependencies
uses: actions-rs/toolchain@v1
with:
profile: minimal

- name: Add rustfmt component
run: rustup component add rustfmt
uses: dsherret/rust-toolchain-file@v1

- name: Build Rusk binary
shell: bash
Expand Down

0 comments on commit e61ab00

Please sign in to comment.