Skip to content

Commit

Permalink
Add some gh runners
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 28, 2024
1 parent fd7b0dc commit 6759191
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 110 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-salt-onedir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ jobs:
- x86_64
- arm64
runs-on:
- self-hosted
- linux
- ${{ matrix.arch }}
- linux-${{ matrix.arch }}
steps:

- name: "Throttle Builds"
Expand Down
28 changes: 7 additions & 21 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2017,9 +2017,7 @@ jobs:
name: Build Repository
environment: nightly
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2120,9 +2118,7 @@ jobs:
name: Build Repository
environment: nightly
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2251,9 +2247,7 @@ jobs:
name: Build Repository
environment: nightly
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2429,9 +2423,7 @@ jobs:
name: Build Repository
environment: nightly
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2533,9 +2525,7 @@ jobs:
name: Build Repository
environment: nightly
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2626,9 +2616,7 @@ jobs:
name: Build Repository
environment: nightly
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2755,9 +2743,7 @@ jobs:
name: Publish Repositories
if: ${{ always() && ! failure() && ! cancelled() }}
runs-on:
- self-hosted
- linux
- repo-nightly
- linux-x86_64
environment: nightly
needs:
- prepare-workflow
Expand Down
24 changes: 6 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ jobs:
prepare-workflow:
name: Prepare Workflow Run
runs-on:
- self-hosted
- linux
- repo-release
- linux-x86_64
env:
USE_S3_CACHE: 'true'
environment: release
Expand Down Expand Up @@ -124,9 +122,7 @@ jobs:
download-onedir-artifact:
name: Download Staging Onedir Artifact
runs-on:
- self-hosted
- linux
- repo-release
- linux-x86_64
env:
USE_S3_CACHE: 'true'
environment: release
Expand Down Expand Up @@ -190,9 +186,7 @@ jobs:
backup:
name: Backup
runs-on:
- self-hosted
- linux
- repo-release
- linux-x86_64
needs:
- prepare-workflow
env:
Expand Down Expand Up @@ -223,9 +217,7 @@ jobs:
publish-repositories:
name: Publish Repositories
runs-on:
- self-hosted
- linux
- repo-release
- linux_x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -279,9 +271,7 @@ jobs:
name: Release v${{ needs.prepare-workflow.outputs.salt-version }}
if: ${{ always() && ! failure() && ! cancelled() }}
runs-on:
- self-hosted
- linux
- repo-release
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -395,9 +385,7 @@ jobs:
- release
environment: release
runs-on:
- self-hosted
- linux
- repo-release
- linux-x86_64
env:
USE_S3_CACHE: 'true'
steps:
Expand Down
41 changes: 10 additions & 31 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,7 @@ jobs:
name: "Prepare Release: ${{ needs.prepare-workflow.outputs.salt-version }}"
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['prepare-release'] && fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
runs-on:
- self-hosted
- linux
- medium
- x86_64
- linux-x86_64
needs:
- prepare-workflow
steps:
Expand Down Expand Up @@ -2002,9 +1999,7 @@ jobs:
name: Build Repository
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2105,9 +2100,7 @@ jobs:
name: Build Repository
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2236,9 +2229,7 @@ jobs:
name: Build Repository
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2416,9 +2407,7 @@ jobs:
name: Build Repository
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2520,9 +2509,7 @@ jobs:
name: Build Repository
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2613,9 +2600,7 @@ jobs:
name: Build Repository
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -2742,9 +2727,7 @@ jobs:
name: Publish Repositories
if: ${{ always() && ! failure() && ! cancelled() }}
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
environment: staging
needs:
- prepare-workflow
Expand Down Expand Up @@ -2802,9 +2785,7 @@ jobs:
- build-src-repo
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -2954,9 +2935,7 @@ jobs:
- pkg-download-tests
environment: staging
runs-on:
- self-hosted
- linux
- repo-staging
- linux-x86_64
steps:
- uses: actions/checkout@v4

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/templates/build-repos.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
name: Build Repository
environment: <{ gh_environment }>
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/templates/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@
<%- if prepare_actual_release %>
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['<{ job_name }>'] && fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
runs-on:
- self-hosted
- linux
- medium
- x86_64
- linux-x86_64
<%- else %>
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['<{ job_name }>'] && fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/templates/nightly.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ concurrency:
name: Publish Repositories
if: ${{ always() && ! failure() && ! cancelled() }}
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
environment: <{ gh_environment }>
needs:
- prepare-workflow
Expand Down
28 changes: 7 additions & 21 deletions .github/workflows/templates/release.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ permissions:
prepare-workflow:
name: Prepare Workflow Run
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
env:
USE_S3_CACHE: 'true'
environment: <{ gh_environment }>
Expand Down Expand Up @@ -156,9 +154,7 @@ permissions:
download-onedir-artifact:
name: Download Staging Onedir Artifact
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
env:
USE_S3_CACHE: 'true'
environment: <{ gh_environment }>
Expand Down Expand Up @@ -211,9 +207,7 @@ permissions:
backup:
name: Backup
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
needs:
- prepare-workflow
env:
Expand Down Expand Up @@ -245,9 +239,7 @@ permissions:
<%- do conclusion_needs.append('publish-repositories') %>
name: Publish Repositories
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux_x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -286,9 +278,7 @@ permissions:
name: Release v${{ needs.prepare-workflow.outputs.salt-version }}
if: ${{ always() && ! failure() && ! cancelled() }}
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -402,9 +392,7 @@ permissions:
name: Restore Release Bucket From Backup
if: ${{ always() && needs.backup.outputs.backup-complete == 'true' && (failure() || cancelled()) }}
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
env:
USE_S3_CACHE: 'true'
needs:
Expand Down Expand Up @@ -445,9 +433,7 @@ permissions:
- restore #}
environment: <{ gh_environment }>
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
env:
USE_S3_CACHE: 'true'
steps:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/templates/staging.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ concurrency:
- build-src-repo
environment: <{ gh_environment }>
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -174,9 +172,7 @@ concurrency:
<%- endfor %>
environment: <{ gh_environment }>
runs-on:
- self-hosted
- linux
- repo-<{ gh_environment }>
- linux-x86_64
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 6759191

Please sign in to comment.