From ffb5a08d5ae9cd74b6ab85bcb5d8ff9b2d5a629b Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 23 Apr 2025 21:14:37 -0700 Subject: [PATCH] WIP: initial forgejo action --- .forgejo/workflows/bin-linux64-release.yaml | 70 +++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .forgejo/workflows/bin-linux64-release.yaml diff --git a/.forgejo/workflows/bin-linux64-release.yaml b/.forgejo/workflows/bin-linux64-release.yaml new file mode 100644 index 000000000..492e830e6 --- /dev/null +++ b/.forgejo/workflows/bin-linux64-release.yaml @@ -0,0 +1,70 @@ +name: bin-linux64-release + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: docker + + name: clone src + uses: actions/checkout@v3 + with: + fetch-depth: 1 + path: "./${{ github.event.repository.name }}" + + - name: apt dependencies + run: | + apt update + apt install -y --no-install-recommends \ + zip \ + gettext \ + libasound2-dev \ + libgnutls28-dev \ + libopenxr-dev \ + libqscintilla2-qt5-dev \ + libsdl2-dev \ + libvulkan-dev \ + libwayland-dev \ + libxcursor-dev \ + libxkbcommon-dev \ + libxrandr-dev \ + qtbase5-dev + + - name: makelibs + run: cd engine && make makelibs FTE_TARGET=linux64 + + - name: build fteqw + run: cd engine && make m-rel FTE_TARGET=linux64 BRANDFLAGS="-DLINK_EZHUD=1" + + - name: build fteqcc + run: cd engine && make qcc-rel FTE_TARGET=linux64 + + - name: build dedicated-server + run: cd engine && make sv-rel FTE_TARGET=linux64 + + - name: build plugins + run: cd engine && make plugins-rel FTE_TARGET=linux64 NATIVE_PLUGINS="ode cod ezhud hl2 irc models xmpp openxr openssl quake3 qi" + + - name: build imgtool + run: cd engine && make imgtool FTE_TARGET=linux64 + + - name: build iqmtool + run: cd engine && make iqmtool FTE_TARGET=linux64 + + - name: upload release + uses: actions/forgejo-release@v2 + with: + url: https://code.idtech.space + repo: "${{ github.repository }}" + tag: "${{ github.ref_name }}" + sha: "${{ github.sha }}" + direction: upload + release-dir: ./engine/release/ + token: ${{ secrets.TOKEN }} + title: "Development Build" + release-notes: "Auto-generated development build." + prerelease: true + override: ${{ vars.OVERRIDE || "false" }} + release-notes-assistant: true