Skip to content

docs(README): update with WordPress integration and Docker support #4

docs(README): update with WordPress integration and Docker support

docs(README): update with WordPress integration and Docker support #4

Workflow file for this run

# 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
on:
push:
branches: ["master"]
tags:
- "v*"
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Install Dependencies (Linux & Windows Cross-Compile)
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev xorg-dev gcc-mingw-w64
- name: Build Linux
run: go build -v -o dback-linux main.go
- name: Build Windows
run: |
CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -v -o dback-windows.exe main.go
- name: Test
run: go test -v ./...
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dback-linux
dback-windows.exe