Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 4 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Checks

defaults:
run:
shell: zsh -e {0}

on:
push:
branches:
Expand All @@ -15,7 +11,7 @@ on:

jobs:
lint:
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -34,7 +30,7 @@ jobs:
git diff --exit-code

framework:
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -61,7 +57,7 @@ jobs:

title:
if: github.event_name == 'pull_request'
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
steps:
- name: Check PR title
env:
Expand Down Expand Up @@ -116,7 +112,7 @@ jobs:

tests:
needs: [lint, framework]
runs-on: [self-hosted-ghr-custom, size-xl-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
strategy:
matrix:
fork:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
permissions:
contents: read
pull-requests: write
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
with:
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Release

defaults:
run:
shell: zsh -e {0}

on:
workflow_dispatch:

jobs:
setup:
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
Expand Down Expand Up @@ -46,7 +42,7 @@ jobs:
generate:
needs: setup
timeout-minutes: 1440 # 24 hours
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -91,7 +87,7 @@ jobs:

package:
needs: [setup, generate]
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
Expand Down Expand Up @@ -133,7 +129,7 @@ jobs:

publish:
needs: [setup, package]
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
stale:
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
permissions:
actions: write
issues: write
Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ on:
description: The branch, tag or SHA to checkout and build from
default: master
type: string
runner:
description: Runner environment
default: github
type: choice
options:
- github
- self-hosted
general:
description: Generate general preset
default: true
Expand All @@ -37,7 +30,6 @@ jobs:
config:
runs-on: ubuntu-latest
outputs:
runner: ${{ steps.config.outputs.runner }}
presets: ${{ steps.config.outputs.presets }}
repo: ${{ steps.config.outputs.repo }}
ref: ${{ steps.config.outputs.ref }}
Expand All @@ -55,14 +47,6 @@ jobs:
echo "ref=$ref" >> "$GITHUB_OUTPUT"
fi

# Runner
if [[ "${{ github.event_name }}" == "schedule" || "${{ inputs.runner }}" == "self-hosted" ]]; then
runner='["self-hosted-ghr-custom", "size-s-x64", "profile-consensusSpecs"]'
else
runner='"ubuntu-latest"'
fi
echo "runner=$runner" >> "$GITHUB_OUTPUT"

# Presets
if [[ "${{ github.event_name }}" == "schedule" ]]; then
presets='["general","minimal","mainnet"]'
Expand All @@ -86,13 +70,12 @@ jobs:
echo "Configuration:"
echo " repo: $repo"
echo " ref: ${ref:-<default branch>}"
echo " runner: $runner"
echo " presets: $presets"

generate:
needs: config
timeout-minutes: 1440 # 24 hours
runs-on: ${{ fromJson(needs.config.outputs.runner) }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -136,7 +119,7 @@ jobs:

package:
needs: [config, generate]
runs-on: ${{ fromJson(needs.config.outputs.runner) }}
runs-on: ubuntu-latest
permissions:
actions: write
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
deploy:
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
Loading