-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.34 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build package
on: [ push, pull_request, workflow_dispatch ]
permissions:
contents: write
jobs:
build_pkg:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout vdpm
uses: actions/checkout@v3
with:
repository: vitasdk/vdpm
path: vdpm
- name: Set env vars
run: |
echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
echo "VITASDK=${GITHUB_WORKSPACE}/vitasdk" >> $GITHUB_ENV
# install latest vita sdk
- name: Download Vita SDK
working-directory: vdpm
run: |
./bootstrap-vitasdk.sh
- name: Install SDK libraries
working-directory: vdpm
run: |
./install-all.sh
- name: Clear CMake Cache
run: |
rm -rf CMakeCache.txt
rm -rf CMakeFiles/
- name: Build Digislots Vita Package
run: |
cmake .
make
- name: Push package artifact
uses: actions/upload-artifact@v3
with:
name: digislots-vita-build_${{ env.sha_name }}
path: digislots_vita.vpk
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: digislots_vita.vpk