github workflow
This commit is contained in:
33
.github/workflows/go-dev.yml
vendored
Normal file
33
.github/workflows/go-dev.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# 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:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: BuildWin64
|
||||
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
|
||||
|
||||
- name: BuildWin32
|
||||
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
|
||||
Reference in New Issue
Block a user