36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
# This workflow will build a golang project
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
|
|
|
name: Go Dev Build
|
|
|
|
on:
|
|
push:
|
|
branches: ["develop"]
|
|
pull_request:
|
|
branches: ["develop"]
|
|
|
|
jobs:
|
|
BuildWin64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: build
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: x1unix/go-mingw:1.20
|
|
options: -v ${{ github.workspace }}:/go/work -w /go/work -e GOARCH=amd64 -e CGO_ENABLED=1
|
|
|
|
run: |
|
|
go build -o ./ifxmetrics_x64.dll -buildmode=c-shared -buildvcs=false -ldflags "-w -s -X main.EXTENSION_VERSION=${{github.ref_name}}-${{github.sha}}" ./extension/cmd
|
|
|
|
BuildWin32:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: build
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: x1unix/go-mingw:1.20
|
|
options: -v ${{ github.workspace }}:/go/work -w /go/work -e GOARCH=386 -e CGO_ENABLED=1
|
|
|
|
run: |
|
|
go build -o ./ifxmetrics.dll -buildmode=c-shared -buildvcs=false -ldflags "-w -s -X main.EXTENSION_VERSION=${{github.ref_name}}-${{github.sha}}" ./extension/cmd |