Skip to content

Commit

Permalink
Add GitHub Workflow for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Apr 8, 2022
1 parent 66a0121 commit 377b386
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 7 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
pull_request:
repository_dispatch:
types: [run_build]

jobs:
build:
runs-on: ubuntu-latest
container: vitasdk/vitasdk-softfp:latest
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
git clone https://github.com/Rinnegatamante/vitaGL.git
make -C vitaGL SOFTFP_ABI=1 NO_DEBUG=1 SAMPLER_UNIFORMS=1 -j$(nproc) install
- name: Compile project
run: |
mkdir build
cd build
cmake ..
make -j$(nproc)
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Get changelog
id: changelog
run: echo "::set-output name=changelog::$(git log -10 --pretty=format:\"%s\")"
- name: Update release body
id: update_release
uses: Rinnegatamante/update_release@master
env:
GITHUB_TOKEN: ${{ github.token }}
with:
release_name: "Nightly ${{ steps.date.outputs.date }}"
body: "${{ steps.date.outputs.changelog }}"
tag: Nightly
- name: Upload release artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.update_release.outputs.upload_url }}
asset_path: build/YoYoLoader.vpk
asset_name: YoYoLoader.vpk
asset_content_type: application/zip
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ target_link_libraries(YoYoLoader
SceCommonDialog_stub
SceDisplay_stub
SceKernelDmacMgr_stub
SceRazorHud_stub
SceRazorCapture_stub
SceFios2_stub
SceGxm_stub
SceLibcBridge_stub
SceShaccCg_stub
SceSysmodule_stub
ScePower_stub
Expand Down Expand Up @@ -96,11 +92,8 @@ target_link_libraries(loader
SceCommonDialog_stub
SceDisplay_stub
SceKernelDmacMgr_stub
SceRazorHud_stub
SceRazorCapture_stub
SceFios2_stub
SceGxm_stub
SceLibcBridge_stub
SceShaccCg_stub
SceSysmodule_stub
ScePower_stub
Expand Down

0 comments on commit 377b386

Please sign in to comment.