Skip to content

Commit

Permalink
CI node artifact (#679)
Browse files Browse the repository at this point in the history
In this PR in the CI added node compiled binary as an artifact to be
fetched from other repositories for the testing purpose. This changes
reduces e2e execution time on ~7 minutes (which is ~27%).

Related to PR
[748](Polkadex-Substrate/orderbook#748).
  • Loading branch information
serhii-temchenko committed Mar 28, 2023
2 parents 209057a + 0ce52a9 commit f00986e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Continuous Integration
on:
pull_request: []
push:
branches: [Develop, main-net-runtime, redux-ci-testing]
branches: [Develop, mainnet-release]

env:
RUNNER_INSTANCE_TYPE: c5.4xlarge
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
cat /etc/issue
apt update
apt install -y clang lldb lld gcc
apt install -y clang lldb lld gcc zip
- name: Install latest nightly with wasm target
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -101,6 +101,17 @@ jobs:
with:
name: code-coverage-report
path: cobertura.xml
- name: Zip compiled binaries
if: contains(github.ref, 'Develop')
# Zipping is required since billing is based on the raw uploaded size.
run: zip -r -j polkadex-node.zip ./target/release/polkadex-node
- name: Upload zipped binaries as an artifact
if: contains(github.ref, 'Develop')
uses: actions/upload-artifact@v3
with:
name: polkadex-node
path: ./polkadex-node.zip
if-no-files-found: error
stop-runner:
name: Stop self-hosted EC2 runner
needs:
Expand Down

0 comments on commit f00986e

Please sign in to comment.