Skip to content

Commit

Permalink
Set up the github workflow to build across 4 architectures
Browse files Browse the repository at this point in the history
Signed-off-by: Ron Minnich <rminnich@gmail.com>
  • Loading branch information
rminnich committed Dec 19, 2023
1 parent 37d4a46 commit 9ad1097
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
jobs:

build:
strategy:
matrix:
arch: [amd64, arm, arm64, riscv64]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -19,7 +23,9 @@ jobs:
go-version: "1.20"

- name: Build
run: go build -v ./...
run: |
go build -v ./...
(cd cmds/cpud && GOARCH=${{ matrix.arch }} go build o cpud.${{ matrix.arch }}})
- name: Test
run: go test -v ./...

0 comments on commit 9ad1097

Please sign in to comment.