-
Notifications
You must be signed in to change notification settings - Fork 13
60 lines (55 loc) · 1.36 KB
/
autobuild.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
59
60
name: Automatic Builds
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Vita SDK
run: |
git clone https://github.com/vitasdk/vdpm
cd vdpm
./bootstrap-vitasdk.sh
./install-all.sh
env:
VITASDK: /usr/local/vitasdk
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
mkdir -p build
cd build
cmake ..
make -j$(nproc)
env:
VITASDK: /usr/local/vitasdk
- name: Upload
uses: actions/upload-artifact@v2
with:
name: vitacontrol
path: build/vitacontrol.skprx
update-release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Delete old release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get artifacts
uses: actions/download-artifact@v2
- name: Package artifacts
run: for i in ./*; do zip -r -j ${i}.zip $i; done
- name: Create new release
uses: ncipollo/release-action@v1
with:
name: Rolling Release
body: These are automatically updated builds of the latest commit.
artifacts: "*.zip"
tag: release
token: ${{ secrets.GITHUB_TOKEN }}