Skip to content

Commit

Permalink
Move arm64 testing to Runs-On (#5448)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Feb 7, 2025
1 parent 6a9d832 commit 46d2a7b
Show file tree
Hide file tree
Showing 153 changed files with 1,835 additions and 298 deletions.
14 changes: 12 additions & 2 deletions .github/package-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/amazon-ecr-credential-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/amtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/argocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/assume-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/atlantis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/atmos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/awless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -181,13 +186,13 @@ jobs:
include:
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
- runs-on: "self-hosted-arm64-large"
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
- arch: amd64
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
env:
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
# Although the "workspace" is mounted to the container, it is not mounted
Expand Down Expand Up @@ -253,6 +258,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/[email protected]
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
Loading

0 comments on commit 46d2a7b

Please sign in to comment.