Skip to content

Improve configuration #67

Improve configuration

Improve configuration #67

name: Build
on: push
jobs:
test-and-build:
strategy:
matrix:
include:
- platform: windows-latest
binary_name: scribblers-x64.exe
- platform: ubuntu-latest
binary_name: scribblers-linux-x64
- platform: macos-latest
binary_name: scribblers-macos-x64
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Run tests
shell: bash
run: |
go test -race -covermode=atomic ./...
- name: Build artifact
shell: bash
run: |
go build -o ${{ matrix.binary_name }} ./cmd/scribblers
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.binary_name }}
path: ./${{ matrix.binary_name }}