Skip to content

Commit

Permalink
Merge pull request #37 from eigerco/feat/34/hosted-runner
Browse files Browse the repository at this point in the history
feat: use self-hosted runner
  • Loading branch information
cernicc authored May 24, 2024
2 parents 61d2d4a + c306f72 commit 7d8595f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
toml:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -31,7 +31,8 @@ jobs:
echo 'Please run taplo format'
format:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: toml
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -51,7 +52,9 @@ jobs:
echo 'Please run cargo fmt --all'
clippy_build_and_test:
runs-on: ubuntu-latest
runs-on: self-hosted
needs:
- format
steps:
- uses: actions/checkout@v4
- name: Cargo caching
Expand All @@ -64,21 +67,16 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/Cargo.toml') }}
- name: Install protobuf compiler
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
target: wasm32-unknown-unknown
components: clippy rust-src
- name: List version
run: |
rustup show
cargo --version
cargo clippy --version
- name: Cargo clippy
run: cargo clippy --locked -q --no-deps -- -D warnings
- name: Build with try-runtime feature
run: RUSTFLAGS="-D warnings" cargo build --locked -q --features try-runtime
- name: Build node runtime
Expand All @@ -87,6 +85,8 @@ jobs:
run: RUSTFLAGS="-D warnings" cargo build --locked -q -p polka-storage-node --features runtime-benchmarks
- name: Build in release mode
run: RUSTFLAGS="-D warnings" cargo build --locked -q --release
- name: Cargo clippy
run: cargo clippy --locked -q --no-deps -- -D warnings
- name: Run tests
run: RUSTFLAGS="-D warnings" cargo test --locked -q --workspace
- name: Failure handling
Expand Down

0 comments on commit 7d8595f

Please sign in to comment.