Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Oct 7, 2023
0 parents commit 8dde8d0
Show file tree
Hide file tree
Showing 19 changed files with 2,169 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build 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: 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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.vscode/*
!.vscode/settings.json

target/
.DS_Store
.tmp
.envrc
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.cargo.target": "armv7-sony-vita-newlibeabihf"
}
Loading

0 comments on commit 8dde8d0

Please sign in to comment.