Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add builds for linux/ppc64le and linux/riscv64 #12

Merged
merged 3 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 59 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
name: Build (linux/amd64)
needs:
- test
Expand All @@ -81,12 +82,13 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -o microq main.go
run: go build -o microq main.go

build-linux-arm64:
env:
GOOS: linux
GOARCH: arm64
CGO_ENABLED: 0
name: Build (linux/arm64)
needs:
- test
Expand All @@ -101,12 +103,55 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -o microq main.go
run: go build -o microq main.go

build-linux-riscv64:
env:
GOOS: linux
GOARCH: riscv64
CGO_ENABLED: 0
name: Build (linux/riscv64)
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'

- name: Build
run: go build -o microq main.go

build-linux-ppc64le:
env:
GOOS: linux
GOARCH: ppc64le
CGO_ENABLED: 0
name: Build (linux/ppc64le)
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'

- name: Build
run: go build -o microq main.go

build-darwin-arm64:
env:
GOOS: darwin
GOARCH: arm64
CGO_ENABLED: 0
name: Build (darwin/arm64)
needs:
- test
Expand All @@ -121,12 +166,13 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -o microq main.go
run: go build -o microq main.go

build-windows-amd64:
env:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
name: Build (windows/amd64)
needs:
- test
Expand All @@ -141,12 +187,13 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -o microq main.go
run: go build -o microq main.go

build-windows-arm64:
env:
GOOS: windows
GOARCH: arm64
CGO_ENABLED: 0
name: Build (windows/arm64)
needs:
- test
Expand All @@ -161,7 +208,7 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -o microq main.go
run: go build -o microq main.go

image:
name: Build Image
Expand Down Expand Up @@ -202,6 +249,13 @@ jobs:
contents: write
needs:
- image
- build-linux-amd64
- build-linux-arm64
- build-linux-riscv64
- build-linux-ppc64le
- build-darwin-arm64
- build-windows-amd64
- build-windows-arm64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
64 changes: 59 additions & 5 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
name: Build (linux/amd64)
needs:
- test
Expand All @@ -81,12 +82,13 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -ldflags="-s -w" -o microq main.go
run: go build -o microq main.go

build-linux-arm64:
env:
GOOS: linux
GOARCH: arm64
CGO_ENABLED: 0
name: Build (linux/arm64)
needs:
- test
Expand All @@ -101,12 +103,55 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -ldflags="-s -w" -o microq main.go
run: go build -o microq main.go

build-linux-riscv64:
env:
GOOS: linux
GOARCH: riscv64
CGO_ENABLED: 0
name: Build (linux/riscv64)
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'

- name: Build
run: go build -o microq main.go

build-linux-ppc64le:
env:
GOOS: linux
GOARCH: ppc64le
CGO_ENABLED: 0
name: Build (linux/ppc64le)
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'

- name: Build
run: go build -o microq main.go

build-darwin-arm64:
env:
GOOS: darwin
GOARCH: arm64
CGO_ENABLED: 0
name: Build (darwin/arm64)
needs:
- test
Expand All @@ -121,12 +166,13 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -ldflags="-s -w" -o microq main.go
run: go build -o microq main.go

build-windows-amd64:
env:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
name: Build (windows/amd64)
needs:
- test
Expand All @@ -141,12 +187,13 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -ldflags="-s -w" -o microq main.go
run: go build -o microq main.go

build-windows-arm64:
env:
GOOS: windows
GOARCH: arm64
CGO_ENABLED: 0
name: Build (windows/arm64)
needs:
- test
Expand All @@ -161,7 +208,7 @@ jobs:
go-version: '1.22.2'

- name: Build
run: CGO_ENABLED=0 go build -ldflags="-s -w" -o microq main.go
run: go build -o microq main.go

image:
name: Build Image
Expand Down Expand Up @@ -206,6 +253,13 @@ jobs:
contents: write
needs:
- image
- build-linux-amd64
- build-linux-arm64
- build-linux-riscv64
- build-linux-ppc64le
- build-darwin-arm64
- build-windows-amd64
- build-windows-arm64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ require (
github.com/gorilla/websocket v1.5.1
)

require golang.org/x/net v0.17.0 // indirect
require golang.org/x/net v0.23.0 // indirect
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY=
github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY=
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
Loading