Skip to content

Commit

Permalink
ci: replace self-hosted runner with github in the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Dec 6, 2023
1 parent 2927ce2 commit 2b77951
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
on:
push:
tags:
- '*'
name: Publish release
- '[0-9]+.[0-9]+.[0-9]+'
name: Build
jobs:
build:
name: Build contracts
runs-on: [self-hosted, heavy]
runs-on: github-hosted-heavy-runner
strategy:
matrix:
profile: [mainnet, mainnet-silo, testnet, testnet-silo]
Expand All @@ -17,7 +17,15 @@ jobs:
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v3
- run: |
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install cargo-make
run: cargo install --no-default-features --force cargo-make
- name: Compile smart contracts
run: |
cargo make --profile ${{ matrix.profile }} build-docker
cargo make --profile ${{ matrix.profile }} build-xcc-docker
- run: ls -lH bin/aurora-*${{ matrix.profile }}.wasm
Expand All @@ -29,7 +37,7 @@ jobs:

publish:
name: Publish contracts
runs-on: [self-hosted, heavy]
runs-on: github-hosted-heavy-runner
needs: build
steps:
- name: Download artifacts
Expand Down

0 comments on commit 2b77951

Please sign in to comment.