Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI actions #1153

Merged
merged 3 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
39 changes: 10 additions & 29 deletions .github/workflows/dusk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,17 @@ jobs:
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: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: cargo install --git https://github.com/dusk-network/cargo-dusk-analyzer
- run: cargo dusk-analyzer

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 +29,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 +38,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
72 changes: 0 additions & 72 deletions .github/workflows/wallet_build.yml

This file was deleted.

1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "nightly-2023-05-22"
targets = ["wasm32-unknown-unknown"]
components = ["rust-src", "rustfmt", "cargo", "clippy"]