Skip to content

Commit 92056df

Browse files
authored
Merge branch 'nzp-team:main' into main
2 parents 1964b3a + 17d5e24 commit 92056df

313 files changed

Lines changed: 726 additions & 174 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/pull_request_template.md‎

Lines changed: 2 additions & 0 deletions

‎.github/workflows/assemble-and-release.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ jobs:
152152
- NX: `/switch/`
153153
- PC: Anywhere, or where your `nzportable.exe` from an existing install is.
154154
- PSP: `/PSP/GAME/`
155+
- PS4: `/data/` (resulting in `/data/nzportable/nzp/`).
155156
- VITA: `/ux0:` (archive contains a `data` folder).
156157
- 3DS: `/3ds/`
157158
draft: true
@@ -183,6 +184,15 @@ jobs:
183184
asset_path: ./tmp/psp-nzp-assets.zip
184185
asset_name: psp-nzp-assets.zip
185186
asset_content_type: application/zip
187+
- name: Upload PS4 Data
188+
uses: actions/upload-release-asset@v1
189+
env:
190+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
191+
with:
192+
upload_url: ${{ steps.create_release.outputs.upload_url }}
193+
asset_path: ./tmp/ps4-nzp-assets.zip
194+
asset_name: ps4-nzp-assets.zip
195+
asset_content_type: application/zip
186196
- name: Upload VITA Data
187197
uses: actions/upload-release-asset@v1
188198
env:

‎.github/workflows/pull-request.yml‎

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ jobs:
3232
echo "image=$image" >> "$GITHUB_OUTPUT"
3333
echo "Toolbox Image: \`$image\`" >> "$GITHUB_STEP_SUMMARY"
3434
35+
resolve-refs:
36+
name: Resolve Dependency Refs
37+
runs-on: ubuntu-latest
38+
outputs:
39+
quakec_ref: ${{ steps.refs.outputs.quakec_ref }}
40+
vril_ref: ${{ steps.refs.outputs.vril_ref }}
41+
steps:
42+
- name: Read dependency refs
43+
id: refs
44+
env:
45+
PR_BODY: ${{ github.event.pull_request.body }}
46+
run: |
47+
set -euo pipefail
48+
quakec_ref=$(sed -nE 's/^[[:space:]]*quakec_ref=([^[:space:]]+)[[:space:]]*$/\1/p' <<< "$PR_BODY" | head -n 1)
49+
vril_ref=$(sed -nE 's/^[[:space:]]*vril_ref=([^[:space:]]+)[[:space:]]*$/\1/p' <<< "$PR_BODY" | head -n 1)
50+
{
51+
echo "quakec_ref=$quakec_ref"
52+
echo "vril_ref=$vril_ref"
53+
} >> "$GITHUB_OUTPUT"
54+
3555
discover-maps:
3656
name: Discover Maps
3757
runs-on: ubuntu-latest
@@ -56,7 +76,7 @@ jobs:
5676
5777
assets-tests:
5878
name: ${{ matrix.name }}
59-
needs: resolve-toolbox
79+
needs: [resolve-toolbox, resolve-refs]
6080
runs-on: ubuntu-latest
6181
container:
6282
image: ${{ needs.resolve-toolbox.outputs.image }}
@@ -75,6 +95,8 @@ jobs:
7595
test: wav_validator
7696
- name: Verify PCX textures conform
7797
test: pcx_validator
98+
- name: Validate waypoint paths
99+
test: pathfind
78100
defaults:
79101
run:
80102
shell: bash
@@ -98,10 +120,36 @@ jobs:
98120
echo "Assets PR head: \`$PR_HEAD_SHA\`"
99121
echo "Tested merge commit: \`$PR_MERGE_SHA\`"
100122
} >> "$GITHUB_STEP_SUMMARY"
123+
- name: Select dependency overrides
124+
if: needs.resolve-refs.outputs.quakec_ref != '' || needs.resolve-refs.outputs.vril_ref != ''
125+
env:
126+
QUAKEC_REF: ${{ needs.resolve-refs.outputs.quakec_ref }}
127+
VRIL_REF: ${{ needs.resolve-refs.outputs.vril_ref }}
128+
PR_HEAD_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
129+
run: |
130+
set -euo pipefail
131+
for dependency in quakec vril; do
132+
case "$dependency" in
133+
quakec) repository=quakec; ref="$QUAKEC_REF" ;;
134+
vril) repository=vril-engine; ref="$VRIL_REF" ;;
135+
esac
136+
[ -n "$ref" ] || continue
137+
directory="/workspace/repos/$repository"
138+
git -C "$directory" fetch "https://github.com/${PR_HEAD_OWNER}/${repository}.git" "$ref"
139+
git -C "$directory" checkout --detach FETCH_HEAD
140+
echo "${repository} override: \`${PR_HEAD_OWNER}/${repository}@$(git -C "$directory" rev-parse HEAD)\` (requested \`$ref\`)" >> "$GITHUB_STEP_SUMMARY"
141+
done
101142
- name: Run
102143
env:
103144
ASSETS_TEST: ${{ matrix.test }}
104145
run: /entrypoint.sh test-assets "$ASSETS_TEST"
146+
- name: Upload pathfind reports
147+
if: always() && matrix.test == 'pathfind'
148+
uses: actions/upload-artifact@v4
149+
with:
150+
name: pathfind-reports
151+
path: /workspace/repos/assets/tmp/pathfind
152+
if-no-files-found: warn
105153

106154
map-tests:
107155
name: Compile ${{ matrix.map }}

‎README.md‎

Lines changed: 1 addition & 1 deletion

‎common/data/configuration/default.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@
329329
{
330330
"graphics":
331331
{
332+
"dpad": "gfx/hud/default/equipment/dpad",
332333
"grenade": "gfx/hud/default/equipment/frag",
333334
"bouncing_betty": "gfx/hud/default/equipment/betty"
334335
}
3.11 KB
Binary file not shown.

0 commit comments

Comments
 (0)