Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use different runners #2239

Merged
merged 3 commits into from
Dec 2, 2024
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
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Configuration related to self-hosted runner.
self-hosted-runner:
# Labels of self-hosted runner in array of string.
labels:
- linux-amd64
- linux-arm64
20 changes: 10 additions & 10 deletions .github/workflows/dagster-cloud-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ jobs:
build:
needs:
- prerun
runs-on: ubuntu-latest
if: needs.prerun.outputs.result != 'skip'
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
runner:
- linux-amd64
- linux-arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> "${GITHUB_ENV}"
runner=${{ matrix.runner }}
echo "PLATFORM_PAIR=${runner//-//}" >> "${GITHUB_ENV}"

# https://github.com/actions/checkout
- uses: actions/checkout@v4
Expand Down Expand Up @@ -106,9 +106,9 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }}
cache-to: type=gha,mode=max,scope=build-${{ env.PLATFORM_PAIR }}
platforms: ${{ matrix.platform }}
cache-from: type=gha,scope=build-${{ matrix.runner }}
cache-to: type=gha,mode=max,scope=build-${{ matrix.runner }}
platforms: ${{ env.PLATFORM_PAIR }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PYTHON_VERSION=${{ inputs.python-version }}
Expand All @@ -127,7 +127,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
name: digests-${{ matrix.runner }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down
Loading