Skip to content

Commit

Permalink
Add arm/arm64 images
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarrillo committed Dec 24, 2023
1 parent 0090b79 commit 4e9fca9
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,45 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
make: ["lint", "test"]
arch:
- arm64
- arm
- amd64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ matrix.arch }}

- name: install go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: ${{ matrix.make }}
run: make ${{ matrix.make }}
- name: Run tests
run: make test

deploy:
runs-on: ubuntu-latest
needs: tests
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
strategy:
matrix:
goosarch: [linux-amd64]
goosarch:
- linux/amd64
- linux/arm/v7
- linux/arm64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down

0 comments on commit 4e9fca9

Please sign in to comment.