Skip to content

Commit

Permalink
added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Oct 31, 2024
1 parent bc1a0e8 commit 4e39d79
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
39 changes: 38 additions & 1 deletion .github/workflows/webOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ name: CI webOS

on:
push:
tags-ignore:
- '*'
branches:
- '*'
pull_request:
repository_dispatch:
types: [run_build]

permissions:
contents: read

env:
PACKAGE_NAME: com.retroarch.webos

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,6 +32,14 @@ jobs:
fileName: "ares-package_*.deb"
out-file-path: "temp"

- name: Download Manifest Generator
uses: robinraju/[email protected]
with:
repository: "webosbrew/dev-toolbox-cli"
latest: true
fileName: "webosbrew-toolbox-gen-manifest_*.deb"
out-file-path: "temp"

- name: Update packages
run: sudo apt-get -yq update

Expand All @@ -47,6 +62,28 @@ jobs:
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
- name: Compile RA
shell: bash
run: |
. /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
make -f Makefile.webos ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN)
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN)
- name: Generate Manifest
shell: bash
run: |
source version.all
webosbrew-gen-manifest -o webos/${PACKAGE_NAME}.manifest.json \
-p webos/${PACKAGE_NAME}_${RARCH_VERSION}_arm.ipk \
-i https://github.com/webosbrew/RetroArch/raw/webos/webos/icon160.png \
-l https://github.com/webosbrew/RetroArch
- name: Release
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
allowUpdates: true
omitNameDuringUpdate: true
omitBody: true
omitPrereleaseDuringUpdate: true
artifacts: webos/*.ipk,webos/*.manifest.json
4 changes: 2 additions & 2 deletions Makefile.webos
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SDL2_PREBUILT_ARCHIVE ?= https://github.com/webosbrew/SDL-webOS/releases/downloa
#########################
#########################

PACKAGE_NAME = com.retroarch
PACKAGE_NAME ?= com.retroarch.webos
PACKAGE_VERSION := $(patsubst "%",%,$(RARCH_VERSION))

DEBUG ?= 0
Expand Down Expand Up @@ -269,7 +269,7 @@ install: ipk
ares-install webos/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(ARCH).ipk

launch: install
ares-launch com.retroarch
ares-launch $(PACKAGE_NAME)

.PHONY: all clean ipk

Expand Down

0 comments on commit 4e39d79

Please sign in to comment.