diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..6c15a8e --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +on: + release: + types: [created] + workflow_dispatch: + +permissions: + contents: write + packages: write + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'src/go.mod' + - name: Build Binaries + run: | + sudo apt-get update + sudo apt-get install -y build-essential gcc-multilib gcc-mingw-w64 pkg-config libgl1-mesa-dev xorg-dev + cd src + make all