-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.72 KB
/
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
name: Build and publish examples
on:
push:
branches:
- main
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/vita-rust/vitasdk-rs
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Northfear SDL fork
run: |
chown -R 1000:1000 northfear-sdl2
cd northfear-sdl2
sudo --preserve-env=VITASDK -u \#1000 vita-makepkg
vdpm sdl2-*-arm.tar.xz
- name: Build
run: |
cargo vita build vpk --release --package vita-std-tests --tests
cargo vita build vpk --release
mv target/armv7-sony-vita-newlibeabihf/release/deps/*.vpk target/armv7-sony-vita-newlibeabihf/release/
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: examples
path: target/armv7-sony-vita-newlibeabihf/release/*.vpk
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: examples
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: latest
assets: '*'
fail-if-no-release: false
fail-if-no-assets: false
- name: Release
uses: softprops/action-gh-release@v1
with:
name: Latest
body: >
This release is automatically updated by a Github Action on every push to the main branch.
tag_name: latest
generate_release_notes: false
files: |
*.vpk