Skip to content

Commit bf79a17

Browse files
committed
test linux runners all workflows
1 parent abd5b1a commit bf79a17

File tree

5 files changed

+38
-8
lines changed

5 files changed

+38
-8
lines changed

.github/workflows/chain-spec-snapshot-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ name: Chain spec snapshot build
77
on:
88
workflow_dispatch:
99
push:
10+
branches:
11+
- change-linux-runners
1012
tags:
1113
- 'chain-spec-snapshot-*'
1214
- 'chain-spec-mainnet-*'
1315

1416
jobs:
1517
chains-spec:
16-
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || 'ubuntu-22.04') }}
18+
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
19+
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
20+
'"ubuntu-22.04"') }}
1721
permissions:
1822
contents: write
1923
packages: write

.github/workflows/domain-genesis-storage-snapshot-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ name: Domain genesis storage snapshot build
66
on:
77
workflow_dispatch:
88
push:
9+
branches:
10+
- change-linux-runners
911
tags:
1012
- 'domain-genesis-storage-snapshot-*'
1113
- 'domain-genesis-storage-taurus-*'
1214

1315
jobs:
1416
domain-genesis-storage:
15-
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || 'ubuntu-22.04') }}
17+
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
18+
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
19+
'"ubuntu-22.04"') }}
1620
permissions:
1721
contents: write
1822
packages: write

.github/workflows/runtime-snapshot-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ name: Runtime snapshot build
77
on:
88
workflow_dispatch:
99
push:
10+
branches:
11+
- change-linux-runners
1012
tags:
1113
- "runtime-snapshot-*"
1214
- "runtime-taurus-*"
1315
- "runtime-mainnet-*"
1416

1517
jobs:
1618
runtime:
17-
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || 'ubuntu-22.04') }}
19+
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
20+
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
21+
'"ubuntu-22.04"') }}
1822
permissions:
1923
contents: write
2024
packages: write

.github/workflows/rust.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- change-linux-runners
78
pull_request:
89
workflow_dispatch:
910
merge_group:
@@ -22,7 +23,9 @@ env:
2223

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

2730
steps:
2831
- name: Checkout
@@ -49,7 +52,13 @@ jobs:
4952
cargo-clippy:
5053
strategy:
5154
matrix:
52-
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"]') }}
55+
os: ${{ fromJson(github.repository_owner == 'autonomys' &&
56+
'[
57+
"runs-on=${{ github.run_id }}/cpu=8+16/ram=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64",
58+
["self-hosted", "windows-server-2022-x86-64"],
59+
["self-hosted", "macos-14-arm64"]
60+
]' ||
61+
'["ubuntu-22.04", "macos-14", "windows-2022"]') }}
5362

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

@@ -158,8 +167,13 @@ jobs:
158167
cargo-test:
159168
strategy:
160169
matrix:
161-
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"]') }}
162-
170+
os: ${{ fromJson(github.repository_owner == 'autonomys' &&
171+
'[
172+
"runs-on=${{ github.run_id }}/cpu=8+16/ram=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64",
173+
["self-hosted", "windows-server-2022-x86-64"],
174+
["self-hosted", "macos-14-arm64"]
175+
]' ||
176+
'["ubuntu-22.04", "macos-14", "windows-2022"]') }}
163177
runs-on: ${{ matrix.os }}
164178
# Don't use the full 6 hours if a test hangs
165179
timeout-minutes: 120

.github/workflows/snapshot-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ name: Snapshot build
88
on:
99
workflow_dispatch:
1010
push:
11+
branches:
12+
- change-linux-runners
1113
tags:
1214
- "snapshot-*"
1315
- "taurus-*"
@@ -20,7 +22,9 @@ env:
2022
jobs:
2123
# This will build container images and then extract executables out of them
2224
ubuntu:
23-
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-22.04-x86-64"]' || '"ubuntu-22.04"') }}
25+
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
26+
'"runs-on=${{ github.run_id }}/cpu=8+16/ram=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
27+
'"ubuntu-22.04"') }}
2428
permissions:
2529
contents: write
2630
packages: write

0 commit comments

Comments
 (0)