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

ci: move nightly job to the CI. #770

Merged
merged 6 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ updates:
- dependency-name: "polkadot-*"
- dependency-name: "node-template-*"
schedule:
interval: "daily"
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
6 changes: 3 additions & 3 deletions .github/workflows/actions/prepare-binaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ runs:
chmod u+x ./tmp/polkadot* ./tmp/staking-miner-playground
./tmp/polkadot --version
./tmp/staking-miner-playground --version
mkdir -p ~/.local/bin
mv ./tmp/polkadot* ~/.local/bin
mv ./tmp/staking-miner-playground ~/.local/bin
mkdir -p /usr/local/bin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this path because it was not found in the default path, not sure how it worked before 🤔

mv ./tmp/polkadot* /usr/local/bin
mv ./tmp/staking-miner-playground /usr/local/bin
3 changes: 3 additions & 0 deletions .github/workflows/build-polkadot-for-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
run: |
cargo build -p polkadot --release --features fast-runtime
./target/release/polkadot --version
strip -s ./target/release/polkadot
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strip binaries to make the download faster

strip -s ./target/release/polkadot-prepare-worker
strip -s ./target/release/polkadot-execute-worker

- name: upload polkadot binary
uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
cd staking-miner-playground
cargo build --release --features test-trimming
./target/release/staking-miner-playground --version
strip -s ./target/release/staking-miner-playground
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strip binary to make the download faster, this is over 1GB unstripped.


- name: upload staking-miner-playground binary
uses: actions/upload-artifact@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get Polkadot and Staking Miner Playground binaries
uses: ./.github/workflows/actions/prepare-binaries

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
Expand All @@ -138,7 +141,7 @@ jobs:
- name: Run tests on Ubuntu
run: |
${{ env.RUST_INFO }}
RUST_LOG=info cargo test --workspace -- --nocapture
RUST_LOG=info cargo +stable test --release --workspace -- --nocapture
niklasad1 marked this conversation as resolved.
Show resolved Hide resolved

build:
name: Build polkadot-staking-miner binary
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/nightly.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,3 @@ anyhow = "1"
assert_cmd = "2.0"
sp-storage = "17.0.0"
regex = "1"

[features]
default = []
slow-tests = []
1 change: 0 additions & 1 deletion tests/monitor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Requires a `polkadot binary ` built with `--features fast-runtime` in the path to run integration tests against.
#![cfg(feature = "slow-tests")]
pub mod common;

Expand Down