Merge pull request #27 from libretro/CI-PS4

Add GHA CI for Orbis
This commit is contained in:
Francisco Javier Trujillo Mata 2022-11-10 21:37:20 +01:00 committed by GitHub
commit bce193bc1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 6 deletions

View file

@ -1,4 +1,4 @@
name: CI
name: CI PS2
on:
push:
@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
@ -20,9 +20,9 @@ jobs:
- name: Get Information Variables
id: core
run: |
echo "::set-output name=info::$(echo test)"
echo "::set-output name=platform::$(echo ps2)"
echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
echo "info=$(echo test)" >> $GITHUB_OUTPUT
echo "platform=$(echo ps2)" >> $GITHUB_OUTPUT
echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Compile test core
run: |
@ -30,7 +30,7 @@ jobs:
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ steps.core.outputs.info }}_libretro_${{ steps.core.outputs.platform }}-${{ steps.core.outputs.sha8 }}
path: tests/test/${{ steps.core.outputs.info }}_libretro_${{ steps.core.outputs.platform }}.a

36
.github/workflows/PS4.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: CI PS4
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build-ps4:
runs-on: ubuntu-latest
container: orbisdev/orbisdev:latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apk add ncurses-dev make bash python2 libstdc++
- name: Get Information Variables
id: core
run: |
echo "info=$(echo test)" >> $GITHUB_OUTPUT
echo "platform=$(echo orbis)" >> $GITHUB_OUTPUT
echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Compile test core
run: |
cd tests/test && make platform=${{ steps.core.outputs.platform }} clean all
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.core.outputs.info }}_libretro_${{ steps.core.outputs.platform }}-${{ steps.core.outputs.sha8 }}
path: tests/test/${{ steps.core.outputs.info }}_libretro_${{ steps.core.outputs.platform }}.a