Skip to content

github: Rework build #14

github: Rework build

github: Rework build #14

Workflow file for this run

name: ci
on:
push:
pull_request:
workflow_dispatch:
jobs:
plugins:
name: plugins / ${{matrix.arch}}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch:
- 64
- 32
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW${{matrix.arch}}
path-type: inherit
- shell: msys2 {0}
run: go run . ${{matrix.arch}} -a -ldflags '-s -w -extldflags=-static' -trimpath -v -x ./plugins/...
# note: -a is needed to prevent caching issues when switching the C compiler (https://pkg.go.dev/cmd/go#hdr-Build_and_test_caching)
- uses: actions/upload-artifact@v4
with:
name: plugins${{matrix.arch}}
path: '*.dll'