Skip to content

Commit

Permalink
Merge pull request #12 from c16a/feature/c16a
Browse files Browse the repository at this point in the history
Add builds for linux/ppc64le and linux/riscv64
  • Loading branch information
c16a committed May 4, 2024
2 parents ad6a91b + ce9f05e commit 16c5f56
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 13 deletions.
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=

0 comments on commit 16c5f56

Please sign in to comment.