Skip to content

Commit

Permalink
feat: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
frangarcj committed Jul 31, 2023
1 parent be1520f commit 63e3491
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

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

jobs:
build:
runs-on: ubuntu-latest
container: vitasdk/vitasdk:latest
steps:
- uses: actions/checkout@v2
- name: Compile project
run: |
mkdir build
cd build
cmake ../src/
make -j$(nproc)
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: nopsmdrm.skprx.vpk
path: build/nopsmdrm.skprx
- uses: svenstaro/upload-release-action@v2
if: contains(github.ref,'refs/tags')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/nopsmdrm.skprx
overwrite: true
tag: ${{ github.ref }}

0 comments on commit 63e3491

Please sign in to comment.