sync workflows with pantry.core

This commit is contained in:
Jacob Heider 2023-02-03 19:52:04 -05:00 committed by Jacob Heider
parent 0af2511e42
commit 8bb4b483c8
3 changed files with 21 additions and 0 deletions

View file

@ -24,10 +24,21 @@ jobs:
AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }} AWS_S3_CACHE: ${{ secrets.AWS_S3_CACHE }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
bottle-pr: bottle-pr:
strategy:
fail-fast: false
matrix:
platform:
- darwin+x86-64
- linux+x86-64
- darwin+aarch64
- linux+aarch64
needs: [cd] needs: [cd]
if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'true' }} if: ${{ needs.cd.outputs.HAS_ARTIFACTS == 'true' }}
uses: teaxyz/pantry.core/.github/workflows/bottle.yml@main uses: teaxyz/pantry.core/.github/workflows/bottle.yml@main
with:
platform: ${{ matrix.platform }}
secrets: inherit secrets: inherit
bottle-standalone: bottle-standalone:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -13,8 +13,17 @@ jobs:
with: with:
PATTERNS: projects/**/package.yml PATTERNS: projects/**/package.yml
build: build:
strategy:
fail-fast: false
matrix:
platform:
- darwin+x86-64
- linux+x86-64
- darwin+aarch64
- linux+aarch64
needs: [get-diff] needs: [get-diff]
uses: teaxyz/pantry.core/.github/workflows/build.yml@main uses: teaxyz/pantry.core/.github/workflows/build.yml@main
with: with:
projects: ${{ needs.get-diff.outputs.diff || 'zlib.net' }} projects: ${{ needs.get-diff.outputs.diff || 'zlib.net' }}
platform: ${{ matrix.platform }}
secrets: inherit secrets: inherit

View file

@ -6,6 +6,7 @@ on:
jobs: jobs:
cleanup: cleanup:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.merged == false
steps: steps:
- name: Configure AWS Credentials - name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1 uses: aws-actions/configure-aws-credentials@v1