Skip to content

Commit

Permalink
Merge pull request #240 from atoulme/support_ppc
Browse files Browse the repository at this point in the history
support ppc
  • Loading branch information
atoulme authored Dec 1, 2022
2 parents 277453c + 0dbc530 commit 07c0f60
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,20 @@ jobs:

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
skip-build-cache: true
cross-compile:
name: cross-compile
runs-on: ubuntu-latest
strategy:
matrix:
os: [ linux, windows, darwin ]
arch: [ ppc64le, amd64, arm64 ]
exclude:
- os: darwin
arch: ppc64le
- os: windows
arch: ppc64le
steps:
- uses: actions/checkout@v2
- run: |
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build ./...
4 changes: 2 additions & 2 deletions metadata/hostmetadata/host-linux_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux
// +build linux
//go:build linux && !ppc && !ppc64 && !ppc64le
// +build linux,!ppc,!ppc64,!ppc64le

package hostmetadata

Expand Down
4 changes: 2 additions & 2 deletions metadata/hostmetadata/host-not-linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !linux
// +build !linux
//go:build !linux || ppc || ppc64 || ppc64le
// +build !linux ppc ppc64 ppc64le

package hostmetadata

Expand Down
4 changes: 2 additions & 2 deletions metadata/hostmetadata/host_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux
// +build linux
//go:build linux && !ppc && !ppc64 && !ppc64le
// +build linux,!ppc,!ppc64,!ppc64le

package hostmetadata

Expand Down

0 comments on commit 07c0f60

Please sign in to comment.