Skip to content

Commit

Permalink
support ppc
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Nov 30, 2022
1 parent 277453c commit 0dbc530
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
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
@@ -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
@@ -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
@@ -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 0dbc530

Please sign in to comment.