From 8cf393f971843f243f315cb430b5ecd13a2defbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 13 Feb 2024 20:04:54 +0100 Subject: [PATCH] Use libsawyer's gxc to build g2.dat (#21392) --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9e545d21f..392f8d9328 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,28 @@ jobs: uses: actions/checkout@v4 - name: Run check-changelog-formatting run: scripts/check-changelog-formatting + g2dat: + name: g2.dat + runs-on: ubuntu-latest + steps: + - name: Checkout OpenRCT2 + uses: actions/checkout@v4 + with: + path: OpenRCT2 + - name: Download gxc + run: | + curl -Lo tools.tar.gz https://github.com/IntelOrca/libsawyer/releases/download/v1.3.0/libsawyer-tools-linux-x64.tar.gz + mkdir -p "$GITHUB_WORKSPACE/bin" + tar -C "$GITHUB_WORKSPACE/bin" -xf tools.tar.gz + echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH + - name: Build g2.dat + run: | + gxc build g2.dat OpenRCT2/resources/g2/sprites.json + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: g2.dat + path: g2.dat windows: name: Windows runs-on: windows-latest