Skip to content

Commit afc3026

Browse files
committed
webOS: produce 2 artifacts, one with GLES v2 and another with GLES v3
1 parent 11aee33 commit afc3026

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

.github/workflows/webOS.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,56 @@ jobs:
6161
tar xzf arm-webos-linux-gnueabi_sdk-buildroot-x86_64.tar.gz
6262
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
6363
64-
- name: Compile RA
64+
- name: Load RARCH_VERSION from version.all
65+
id: version
66+
shell: bash
67+
run: |
68+
RARCH_VERSION=$(grep -Po '(?<=#define PACKAGE_VERSION ")[^"]+' version.all)
69+
echo "RARCH_VERSION=$RARCH_VERSION" >> "$GITHUB_ENV"
70+
71+
- name: Compile RA (GLES3 variant)
6572
shell: bash
6673
run: |
6774
. /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
68-
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN)
75+
make -f Makefile.webos clean
76+
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 \
77+
HAVE_OPENGLES3=1 HAVE_OPENGLES3_1=1 HAVE_OPENGLES3_2=1 -j"$(getconf _NPROCESSORS_ONLN)"
78+
mv webos/com.retroarch.webos_${RARCH_VERSION}_arm.ipk \
79+
webos/com.retroarch.webos.gles3_${RARCH_VERSION}_arm.ipk
6980
env:
7081
DEBUG: ${{ github.event_name == 'release' && '0' || '1' }}
7182

72-
- name: Get short SHA
73-
id: slug
74-
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
83+
- name: Upload GLES3 artifact
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: com.retroarch.webos.gles3_${{ env.RARCH_VERSION }}_${{ github.sha }}_arm.ipk
87+
path: webos/com.retroarch.webos.gles3_${{ env.RARCH_VERSION }}_arm.ipk
88+
89+
- name: Compile RA (default)
90+
shell: bash
91+
run: |
92+
. /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
93+
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j"$(getconf _NPROCESSORS_ONLN)"
94+
env:
95+
DEBUG: ${{ github.event_name == 'release' && '0' || '1' }}
7596

76-
- uses: actions/upload-artifact@v4
97+
- name: Upload default artifact
98+
uses: actions/upload-artifact@v4
7799
with:
78-
name: com.retroarch.webos_${{ steps.slug.outputs.sha8 }}_arm.ipk
79-
path: |
80-
webos/*.ipk
100+
name: com.retroarch.webos_${{ env.RARCH_VERSION }}_${{ github.sha }}_arm.ipk
101+
path: webos/com.retroarch.webos_${{ env.RARCH_VERSION }}_arm.ipk
81102

82-
- name: Generate Manifest
103+
- name: Generate Manifest (default only)
104+
if: github.repository == 'webosbrew/Retroarch'
83105
shell: bash
84106
run: |
85-
. version.all
86107
webosbrew-gen-manifest -o webos/${PACKAGE_NAME}.manifest.json \
87108
-p webos/${PACKAGE_NAME}_${RARCH_VERSION}_arm.ipk \
88109
-i https://github.com/webosbrew/RetroArch/raw/webos/webos/icon160.png \
89110
-l https://github.com/webosbrew/RetroArch
90111
91112
- name: Release
92-
if: github.event_name == 'release'
113+
if: github.event_name == 'release' && github.repository == 'webosbrew/Retroarch'
93114
uses: ncipollo/release-action@v1
94115
with:
95116
token: ${{ secrets.GITHUB_TOKEN }}
@@ -98,4 +119,7 @@ jobs:
98119
omitNameDuringUpdate: true
99120
omitBody: true
100121
omitPrereleaseDuringUpdate: true
101-
artifacts: webos/*.ipk,webos/*.manifest.json
122+
artifacts: |
123+
webos/com.retroarch.webos_${{ env.RARCH_VERSION }}_arm.ipk
124+
webos/com.retroarch.webos.gles3_${{ env.RARCH_VERSION }}_arm.ipk
125+
webos/${{ env.PACKAGE_NAME }}.manifest.json

0 commit comments

Comments
 (0)