Skip to content

Commit

Permalink
change to ephemeral linux runners all workflows
Browse files Browse the repository at this point in the history
update RAM specs

revert test branch
  • Loading branch information
DaMandal0rian committed Feb 7, 2025
1 parent abd5b1a commit b0c7e65
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
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
4 changes: 3 additions & 1 deletion .github/workflows/domain-genesis-storage-snapshot-build.yml
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

0 comments on commit b0c7e65

Please sign in to comment.