Skip to content

Update docker build platforms for GitHub actions #2

Update docker build platforms for GitHub actions

Update docker build platforms for GitHub actions #2

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