Skip to content

Commit

Permalink
Merge pull request #2314 from dusk-network/ci-copy-artifact
Browse files Browse the repository at this point in the history
CI: Add section to copy rusk artifact to shared folder on the CI host
  • Loading branch information
Fulviuus authored Sep 10, 2024
2 parents c952c6b + 70c0b19 commit bb5bf55
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rusk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,21 @@ jobs:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: cargo fmt --all -- --check
copy_to_host:
needs: test_nightly
runs-on: core
if: needs.test_nightly.result == 'success' && github.base_ref == 'main'
continue-on-error: true
steps:
- name: "Check and Copy Rusk Artifact to Host"
run: |
# Ensure the target directory exists
mkdir -p /var/opt/rusk-artifacts
# Check if the rusk artifact exists before copying
if [ -f ./target/release/rusk ]; then
echo "Rusk artifact found. Copying to host."
cp ./target/release/rusk /var/opt/rusk-artifacts
else
echo "Rusk artifact not found. Skipping copy."
fi

0 comments on commit bb5bf55

Please sign in to comment.