From a9d73d9fea3382955476fd56ec3c74e08ea2e0ab Mon Sep 17 00:00:00 2001 From: Ruben Ripalda Date: Wed, 30 Sep 2026 16:15:57 -0700 Subject: [PATCH] Add build workflow --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..838a4ea --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Build + +on: + push: + branches: [main] + tags: ["v*"] + pull_request: + workflow_dispatch: + +permissions: + contents: write + +jobs: + windows-exe: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install MinGW-w64 + run: sudo apt-get update && sudo apt-get install -y g++-mingw-w64-x86-64 zip + + - name: Build PSGFX.exe + run: bash build.sh + + - name: Package + run: | + mkdir -p dist/PSGFX + cp build/PSGFX.exe dist/PSGFX/ + cp release/HOW-TO.txt dist/PSGFX/ + cd dist && zip -r PSGFX-windows.zip PSGFX + + - uses: actions/upload-artifact@v4 + with: + name: PSGFX-windows + path: dist/PSGFX-windows.zip + + - name: Attach to release + if: startsWith(github.ref, 'refs/tags/v') + uses: softprops/action-gh-release@v2 + with: + files: dist/PSGFX-windows.zip + generate_release_notes: true