Skip to content

Commit

Permalink
test linux runners all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Feb 7, 2025
1 parent abd5b1a commit bf79a17
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/chain-spec-snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ name: Chain spec snapshot build
on:
workflow_dispatch:
push:
branches:
- change-linux-runners
tags:
- 'chain-spec-snapshot-*'
- 'chain-spec-mainnet-*'

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=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/domain-genesis-storage-snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ name: Domain genesis storage snapshot build
on:
workflow_dispatch:
push:
branches:
- change-linux-runners
tags:
- 'domain-genesis-storage-snapshot-*'
- 'domain-genesis-storage-taurus-*'

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=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/runtime-snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ name: Runtime snapshot build
on:
workflow_dispatch:
push:
branches:
- change-linux-runners
tags:
- "runtime-snapshot-*"
- "runtime-taurus-*"
- "runtime-mainnet-*"

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=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- change-linux-runners
pull_request:
workflow_dispatch:
merge_group:
Expand All @@ -22,7 +23,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=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}

steps:
- name: Checkout
Expand All @@ -49,7 +52,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=16+32/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 +167,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=16+32/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
6 changes: 5 additions & 1 deletion .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name: Snapshot build
on:
workflow_dispatch:
push:
branches:
- change-linux-runners
tags:
- "snapshot-*"
- "taurus-*"
Expand All @@ -20,7 +22,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=16+32/family=m7a+m7i-flex/image=ubuntu22-full-x64"' ||
'"ubuntu-22.04"') }}
permissions:
contents: write
packages: write
Expand Down

0 comments on commit bf79a17

Please sign in to comment.