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

DO-2043 / use ephemeral github runner based on EC2 instance #1657

Merged
17 commits merged into from
Dec 1, 2023
6 changes: 5 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ concurrency:
jobs:
benchmark:
name: Run bench
runs-on: ubuntu-latest-16-cores
runs-on: gh-runner-scrypto-ubuntu-jammy-16-cores
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-scrypto-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
needs: tags
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: ubuntu-latest-16-cores
runs_on: gh-runner-scrypto-ubuntu-jammy-16-cores
image_registry: "docker.io"
image_organization: "radixdlt"
image_name: "private-scrypto-builder"
Expand Down
84 changes: 74 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest-16-cores]
os: [gh-runner-scrypto-ubuntu-jammy-16-cores]
steps:
- uses: actions/checkout@v3
- name: Setup cmake
This conversation was marked as resolved.
Show resolved Hide resolved
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Install dependency
Expand All @@ -143,9 +149,15 @@ jobs:

radix-engine:
name: Run Radix Engine tests
runs-on: ubuntu-latest-16-cores
runs-on: gh-runner-scrypto-ubuntu-jammy-16-cores
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Run tests
Expand All @@ -165,9 +177,13 @@ jobs:
# - overflow-checks
# which are false for release variant
name: Run Radix Engine tests (release)
runs-on: ubuntu-latest-16-cores
runs-on: gh-runner-scrypto-ubuntu-jammy-16-cores
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Run tests
Expand All @@ -182,9 +198,15 @@ jobs:

radix-engine-no-std:
name: Run Radix Engine tests (no_std)
runs-on: ubuntu-latest-16-cores
runs-on: gh-runner-scrypto-ubuntu-jammy-16-cores
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Run tests
Expand All @@ -199,9 +221,15 @@ jobs:

radix-engine-wasmer:
name: Run Radix Engine tests (wasmer)
runs-on: ubuntu-latest-16-cores
runs-on: gh-runner-scrypto-ubuntu-jammy-16-cores
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Run tests
Expand Down Expand Up @@ -261,9 +289,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest-16-cores, windows-latest-16-cores]
os: [gh-runner-scrypto-ubuntu-jammy-16-cores, windows-latest-16-cores]
steps:
- uses: actions/checkout@v3
- if: ${{ matrix.os == 'gh-runner-scrypto-ubuntu-jammy-16-cores' }}
name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- if: ${{ matrix.os == 'gh-runner-scrypto-ubuntu-jammy-16-cores' }}
name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- uses: radixdlt/rust-cache@allow_registry_src_caching
Expand All @@ -287,9 +323,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest-16-cores, windows-latest-16-cores, macos-latest]
os: [gh-runner-scrypto-ubuntu-jammy-16-cores, windows-latest-16-cores, macos-latest]
steps:
- uses: actions/checkout@v3
- if: ${{ matrix.os == 'gh-runner-scrypto-ubuntu-jammy-16-cores' }}
name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- if: ${{ matrix.os == 'gh-runner-scrypto-ubuntu-jammy-16-cores' }}
name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- uses: radixdlt/rust-cache@allow_registry_src_caching
Expand All @@ -307,9 +351,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest-16-cores]
os: [gh-runner-scrypto-ubuntu-jammy-16-cores]
steps:
- uses: actions/checkout@v3
- if: ${{ matrix.os == 'gh-runner-scrypto-ubuntu-jammy-16-cores' }}
name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Cargo Check
run: sudo apt-get install libclang-dev -y
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Cargo Check
Expand All @@ -320,19 +371,32 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest-16-cores]
os: [gh-runner-scrypto-ubuntu-jammy-16-cores]
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Cargo Check
run: cargo check --all --features post_run_db_check

determinism-test:
name: Run determinism test
runs-on: ubuntu-latest-16-cores
runs-on: gh-runner-scrypto-ubuntu-jammy-16-cores
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.27.9'
- name: Cargo Check
run: |
sudo apt-get install libclang-dev -y
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs -y
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Pull LFS assets
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-scrypto-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build-amd:
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: ubuntu-latest-16-cores
runs_on: gh-runner-scrypto-ubuntu-jammy-16-cores
environment: "release"
image_registry: "docker.io"
image_organization: "radixdlt"
Expand Down
Loading