Multi-arch support #213
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build the builder | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build the builder | |
run: ./scripts/build.sh -t ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} -n "testbuilder" | |
smoke: | |
name: Smoke Test | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
runner: [ ubuntu-22.04, buildjet-4vcpu-ubuntu-2204-arm ] | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 'stable' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# THEN we can test the builds on both runners | |
- name: Run Smoke Tests | |
run: ./scripts/smoke.sh -t ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} -n "testbuilder" | |
upload: | |
name: Upload Workflow Event Payload | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: event-payload | |
path: ${{ github.event_path }} |