-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66a0121
commit 377b386
Showing
2 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters