mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Build all graphics .dat in the same CI step
This commit is contained in:
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@@ -150,7 +150,7 @@ jobs:
|
|||||||
- name: Run check-changelog-formatting
|
- name: Run check-changelog-formatting
|
||||||
run: scripts/check-changelog-formatting
|
run: scripts/check-changelog-formatting
|
||||||
g2dat:
|
g2dat:
|
||||||
name: g2.dat and fonts.dat
|
name: Graphics .dat files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build_variables
|
needs: build_variables
|
||||||
steps:
|
steps:
|
||||||
@@ -164,22 +164,17 @@ jobs:
|
|||||||
mkdir -p "$GITHUB_WORKSPACE/bin"
|
mkdir -p "$GITHUB_WORKSPACE/bin"
|
||||||
tar -C "$GITHUB_WORKSPACE/bin" -xf tools.tar.gz
|
tar -C "$GITHUB_WORKSPACE/bin" -xf tools.tar.gz
|
||||||
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
|
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
|
||||||
- name: Build g2.dat
|
- name: Build graphics .dat files
|
||||||
run: |
|
run: |
|
||||||
gxc build g2.dat OpenRCT2/resources/g2/sprites.json
|
gxc build g2.dat OpenRCT2/resources/g2/sprites.json
|
||||||
- name: Build fonts.dat
|
|
||||||
run: |
|
|
||||||
gxc build fonts.dat OpenRCT2/resources/fonts/sprites.json
|
gxc build fonts.dat OpenRCT2/resources/fonts/sprites.json
|
||||||
- name: Upload g2.dat
|
- name: Upload graphics .dat files
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: g2-${{ needs.build_variables.outputs.name }}.dat
|
name: graphics-${{ needs.build_variables.outputs.name }}
|
||||||
path: g2.dat
|
path: |
|
||||||
- name: Upload fonts.dat
|
g2.dat
|
||||||
uses: actions/upload-artifact@v4
|
fonts.dat
|
||||||
with:
|
|
||||||
name: fonts-${{ needs.build_variables.outputs.name }}.dat
|
|
||||||
path: fonts.dat
|
|
||||||
windows:
|
windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@@ -237,17 +232,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mv files-signed/openrct2.com bin/openrct2.com
|
mv files-signed/openrct2.com bin/openrct2.com
|
||||||
mv files-signed/openrct2.exe bin/openrct2.exe
|
mv files-signed/openrct2.exe bin/openrct2.exe
|
||||||
- name: Download g2.dat on ARM64
|
- name: Download graphics .dat files on ARM64
|
||||||
if: matrix.platform == 'arm64'
|
if: matrix.platform == 'arm64'
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: g2-${{ needs.build_variables.outputs.name }}.dat
|
name: graphics-${{ needs.build_variables.outputs.name }}
|
||||||
path: bin/data
|
|
||||||
- name: Download fonts.dat on ARM64
|
|
||||||
if: matrix.platform == 'arm64'
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: fonts-${{ needs.build_variables.outputs.name }}.dat
|
|
||||||
path: bin/data
|
path: bin/data
|
||||||
- name: Build artifacts
|
- name: Build artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user