Skip to content

Commit

Permalink
Fix artifact uploading
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie <[email protected]>
  • Loading branch information
Dengjianping committed Oct 29, 2024
1 parent 1b7210c commit 12ae35b
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/genesis_files_for_relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:
sha256sum $CHAIN-genesis.json $CHAIN-genesis.state $CHAIN-genesis.wasm | tee $CHAIN-genesis.sha256
# upload artifacts
- name: upload genesis
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{env.CHAIN}}-genesis.json
path: ${{env.CHAIN}}-genesis.json
- name: upload state
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{env.CHAIN}}-genesis.state
path: ${{env.CHAIN}}-genesis.state
- name: upload wasm
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{env.CHAIN}}-genesis.wasm
path: ${{env.CHAIN}}-genesis.wasm
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/integration_test_calamari.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: sccache --stop-server || true
- if: always()
name: upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: manta
path: target/production/manta
Expand Down Expand Up @@ -173,17 +173,17 @@ jobs:
repository: Manta-Network/Manta
path: Manta
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-state.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-state.json
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-spec.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-spec.json
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-spec.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-spec.json
Expand All @@ -199,7 +199,7 @@ jobs:
'.parachains.[0].collators.[0].command'
cat $GITHUB_WORKSPACE/Manta/zombienet/tests/0001-block-production.toml
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-launch-config.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-launch-config.json
Expand Down Expand Up @@ -280,37 +280,37 @@ jobs:
pm2 stop measure-block-time-${{ matrix.chain-spec.id }}
pm2 stop zombienet
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: zombienet-for-${{ matrix.chain-spec.id }}-stderr.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stderr.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stdout.log
path: $GITHUB_WORKSPACE/measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stdout.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stderr.log
path: $GITHUB_WORKSPACE/measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stderr.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-${{ matrix.chain-spec.id }}-stdout.log
path: $GITHUB_WORKSPACE/measure-block-time-${{ matrix.chain-spec.id }}-stdout.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-${{ matrix.chain-spec.id }}-stderr.log
path: $GITHUB_WORKSPACE/measure-block-time-${{ matrix.chain-spec.id }}-stderr.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: block-time-rococo-relay-for-${{ matrix.chain-spec.id }}.json
path: $GITHUB_WORKSPACE/block-time-rococo.json
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
cd $GITHUB_WORKSPACE/zombienet-tool
pm2 stop zombienet
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-alice-stress.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
Expand All @@ -380,7 +380,7 @@ jobs:
cd $GITHUB_WORKSPACE/zombienet-tool
pm2 stop zombienet
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-alice-stress.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/integration_test_manta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: sccache --stop-server || true
- if: always()
name: upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: manta
path: target/production/manta
Expand Down Expand Up @@ -169,17 +169,17 @@ jobs:
repository: Manta-Network/Manta
path: Manta
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-state.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-state.json
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-spec.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-spec.json
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-spec.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-spec.json
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
'.parachains.[0].id'
cat $GITHUB_WORKSPACE/Manta/zombienet/tests/0001-block-production.toml
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-launch-config.json
path: /home/runner/.local/share/calamari-pc/${{ matrix.chain-spec.id }}-${{ steps.create-chainspec.outputs.short-sha }}-launch-config.json
Expand Down Expand Up @@ -312,32 +312,32 @@ jobs:
cat $GITHUB_WORKSPACE/Manta/zombienet/tests/0001-block-production.zndsl
./zombienet -f -p native test $GITHUB_WORKSPACE/Manta/zombienet/tests/0001-block-production.zndsl
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: zombienet-for-${{ matrix.chain-spec.id }}-stderr.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stderr.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stdout.log
path: $GITHUB_WORKSPACE/measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stdout.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stderr.log
path: $GITHUB_WORKSPACE/measure-block-time-rococo-relay-for-${{ matrix.chain-spec.id }}-stderr.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-${{ matrix.chain-spec.id }}-stdout.log
path: $GITHUB_WORKSPACE/measure-block-time-${{ matrix.chain-spec.id }}-stdout.log
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: measure-block-time-${{ matrix.chain-spec.id }}-stderr.log
path: $GITHUB_WORKSPACE/measure-block-time-${{ matrix.chain-spec.id }}-stderr.log
Expand All @@ -361,7 +361,7 @@ jobs:
cd $GITHUB_WORKSPACE/zombienet-tool
pm2 stop zombienet
- if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain-spec.id }}-alice-stress.log
path: $GITHUB_WORKSPACE/zombienet-for-${{ matrix.chain-spec.id }}-stdout.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/metadata_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
run: pkill manta
- if: always()
name: Save output as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.CHAIN }}
path: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish_draft_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
jq > ${{ matrix.runtime.name }}-srtool-output.json
- if: always()
name: upload srtool json
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.runtime.name }}-srtool-json
path: ${{ matrix.runtime.name }}-srtool-output.json
- if: always()
name: upload runtime
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.runtime.name }}-runtime
path: |
Expand Down Expand Up @@ -135,19 +135,19 @@ jobs:
run: sccache --stop-server || true
- if: always()
name: upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: manta
path: target/production/manta
- if: always()
name: upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: config-for-integration-test
path: .github/resources/config-for-integration-test.json
- if: always()
name: upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: config-for-runtime-upgrade-test
path: .github/resources/config-for-runtime-upgrade-test.json
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/run_all_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,37 +110,37 @@ jobs:
./scripts/benchmarking/run_all_benchmarks.sh -b -c ${{ github.workspace }}/tests/data/fork.json -s ./$FULL_DB_FOLDER
- if: always()
name: upload benchmarking binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: manta
path: ./target/production/manta
- if: always()
name: upload frame weights
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: frame-weights-output
path: ./scripts/benchmarking/frame-weights-output/
- if: always()
name: upload xcm weights
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: xcm-weights-output
path: ./scripts/benchmarking/xcm-weights-output/
- if: always()
name: upload benchmarking errors
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: benchmarks-errors
path: ./scripts/benchmarking/benchmarking_errors.txt
- if: always()
name: upload machine benchmark result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: machine-benchmark
path: ./scripts/benchmarking/machine_benchmark_result.txt
- if: always()
name: upload storage weights
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: rocksdb-weights
path: ./scripts/benchmarking/rocksdb_weights.rs
8 changes: 4 additions & 4 deletions .github/workflows/runtime_upgrade_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ jobs:
jq > ${{ env.RUNTIME }}-srtool-output.json
- if: always()
name: upload srtool json
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.RUNTIME }}-srtool-json
path: ${{ env.RUNTIME }}-srtool-output.json
- if: always()
name: upload runtime
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.RUNTIME }}-runtime
path: |
${{ steps.srtool-build.outputs.wasm }}
${{ steps.srtool-build.outputs.wasm_compressed }}
- if: always()
name: upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: config-for-runtime-upgrade-test
path: .github/resources/config-for-runtime-upgrade-test.json
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
yarn
yarn runtime_upgrade_test --address=ws://127.0.0.1:9921 --exit
if [ $? != 0 ]; then echo "Runtime upgrade failed!"; exit 1; fi
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ env.RUNTIME_SPEC }}-alice.log
path: ${{ github.workspace }}/zombienet-for-${{ env.RUNTIME_SPEC }}-stdout.log

0 comments on commit 12ae35b

Please sign in to comment.