Merge remote-tracking branch 'origin/main' into release/v3.0.x #1078
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Rollappd | |
on: ["push"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: [amd64] | |
targetos: [darwin, linux] | |
go-version: ['1.21.x', '1.22.x'] | |
include: | |
- targetos: darwin | |
arch: arm64 | |
name: rollapp ${{ matrix.arch }} for ${{ matrix.targetos }} with Go ${{ matrix.go-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
env: | |
GOOS: ${{ matrix.targetos }} | |
GOARCH: ${{ matrix.arch }} | |
- name: Compile rollappd | |
run: | | |
go mod download | |
cd cmd/rollappd | |
go build . | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: rollappd ${{ matrix.targetos }} ${{ matrix.arch }} Go ${{ matrix.go-version }} | |
path: cmd/rollappd/rollappd |