Skip to content

Commit

Permalink
github: Rework build
Browse files Browse the repository at this point in the history
  • Loading branch information
pg9182 committed Apr 16, 2024
1 parent e8448d7 commit d2cf8f6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci
on:
push:
pull_request:
workflow_dispatch:

jobs:
plugins:
name: plugins / ${{matrix.arch}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: 64
apt: gcc-mingw-w64-x86-64
cc: x86_64-w64-mingw32-gcc
- arch: 32
apt: gcc-mingw-w64-i686
cc: i686-w64-mingw32-gcc
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: sudo apt install -y ${{matrix.apt}}
- run: go run . ${{matrix.arch}} CC=${{matrix.cc}} -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'
23 changes: 0 additions & 23 deletions .github/workflows/plugins.yml

This file was deleted.

0 comments on commit d2cf8f6

Please sign in to comment.