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

change to self-hosted ephemeral linux runners all workflows #3373

Merged
merged 5 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 3 additions & 1 deletion .github/workflows/chain-spec-snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ on:

jobs:
chains-spec:
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || 'ubuntu-22.04') }}
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ on:

jobs:
domain-genesis-storage:
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || 'ubuntu-22.04') }}
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/runtime-snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ on:

jobs:
runtime:
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || 'ubuntu-22.04') }}
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ env:

jobs:
cargo-fmt:
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || '"ubuntu-22.04"') }}
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}

steps:
- name: Checkout
Expand All @@ -49,7 +51,13 @@ jobs:
cargo-clippy:
strategy:
matrix:
os: ${{ fromJson(github.repository_owner == 'autonomys' && '[["self-hosted", "ubuntu-22.04-x86-64"], ["self-hosted", "macos-14-arm64"], ["self-hosted", "windows-server-2022-x86-64"]]' || '["ubuntu-22.04", "macos-14", "windows-2022"]') }}
os: ${{ fromJson(github.repository_owner == 'autonomys' &&
'[
"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64",
["self-hosted", "windows-server-2022-x86-64"],
["self-hosted", "macos-14-arm64"]
]' ||
'["ubuntu-22.04", "macos-14", "windows-2022"]') }}

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -158,8 +166,13 @@ jobs:
cargo-test:
strategy:
matrix:
os: ${{ fromJson(github.repository_owner == 'autonomys' && '[["self-hosted", "ubuntu-22.04-x86-64"], ["self-hosted", "macos-14-arm64"], ["self-hosted", "windows-server-2022-x86-64"]]' || '["ubuntu-22.04", "macos-14", "windows-2022"]') }}

os: ${{ fromJson(github.repository_owner == 'autonomys' &&
'[
"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64",
["self-hosted", "windows-server-2022-x86-64"],
["self-hosted", "macos-14-arm64"]
]' ||
'["ubuntu-22.04", "macos-14", "windows-2022"]') }}
runs-on: ${{ matrix.os }}
# Don't use the full 6 hours if a test hangs
timeout-minutes: 120
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ env:
jobs:
# This will build container images and then extract executables out of them
ubuntu:
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || '"ubuntu-22.04"') }}
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=32+64/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
Loading