Update docker build platforms for GitHub actions #2
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: Development Build | |
on: | |
push: | |
branches: | |
- features | |
jobs: | |
build: | |
name: Dev Build on ${{ matrix.goos }} / ${{ matrix.goarch }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [darwin, linux, netbsd, openbsd, windows] | |
goarch: [amd64, arm64] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.x | |
- name: Build project | |
run: | | |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \ | |
cd server && \ | |
go build -mod=vendor -tags="sonic avx" -ldflags="-s" -o nauthilus-${{ matrix.goos }}-${{ matrix.goarch }}-dev . | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nauthilus-${{ matrix.goos }}-${{ matrix.goarch }}-dev-binary | |
path: server/nauthilus-${{ matrix.goos }}-${{ matrix.goarch }}-dev |