forked from alexbatalov/fallout2-ce
-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (65 loc) · 1.9 KB
/
psv_release.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
61
62
63
64
65
66
67
68
69
70
71
72
name: PS Vita Development Build
on:
pull_request:
push:
jobs:
create_dev_release:
runs-on: ubuntu-latest
steps:
- name: Create Development release
if: ${{ github.event_name != 'pull_request' }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
build-psv:
name: Make (PS Vita)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install libgcc1 gettext
- name: Setup Vita SDK
continue-on-error: true
run: |
git clone --depth 1 https://github.com/vitasdk/vdpm
cd vdpm
export PATH="$VITASDK/bin:$PATH"
./bootstrap-vitasdk.sh
./install-all.sh
rm -rf ~/.vitasdk-cache
env:
VITASDK: /usr/local/vitasdk
- name: Build
run: |
export PATH="$VITASDK/bin:$PATH"
cmake -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=None -B build
cmake --build build -- -j4
env:
VITASDK: /usr/local/vitasdk
- name: Upload development release
if: ${{ github.event_name != 'pull_request' }}
uses: softprops/action-gh-release@v1
with:
name: Development Build
tag_name: "latest"
prerelease: true
files: |
build/fallout2-ce.vpk
build/fallout2-ce
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload tagged release
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
# uses: softprops/action-gh-release@v1
# with:
# files: |
# build/fallout2-ce.vpk
# build/fallout2-ce
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}