-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5d27a9
commit c131fe1
Showing
11 changed files
with
124 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: GitHub Actions Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: "Create a release" | ||
type: choice | ||
required: false | ||
default: 'false' | ||
options: | ||
- 'false' | ||
- 'true' | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@main | ||
|
||
- name: Configure build | ||
run: ./premake5 vs2022 | ||
|
||
- name: Build | ||
run: | | ||
msbuild -m build/GTALCS.GTAVCS.PSP.CLEO.sln /property:Configuration=Release | ||
- name: Pack binaries | ||
shell: cmd | ||
run: release.bat | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cleopsp | ||
path: | | ||
data//* | ||
!**/*.elf | ||
- name: Get release info | ||
if: github.event.inputs.release != '' && github.event.inputs.release != 'false' | ||
id: release_info | ||
uses: cardinalby/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag: latest | ||
|
||
- name: Upload Release | ||
if: | | ||
github.event.inputs.release == 'true' && | ||
github.ref_name == 'main' && | ||
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') && | ||
github.repository == 'cleolibrary/GTALCS.GTAVCS.PSP.CLEO' | ||
uses: ncipollo/release-action@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
allowUpdates: true | ||
name: ${{ steps.release_info.outputs.name }} | ||
body: ${{ steps.release_info.outputs.body }} | ||
tag: ${{ steps.release_info.outputs.tag_name }} | ||
artifacts: cleopsp.zip | ||
|
||
- name: Update Tag | ||
if: | | ||
github.event.inputs.release == 'true' && | ||
github.ref_name == 'main' && | ||
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') && | ||
github.repository == 'cleolibrary/GTALCS.GTAVCS.PSP.CLEO' | ||
uses: richardsimko/[email protected] | ||
with: | ||
tag_name: ${{ steps.release_info.outputs.tag_name }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PSP_BEGIN_EXPORTS | ||
|
||
PSP_EXPORT_START(syslib, 0, 0x8000) | ||
PSP_EXPORT_FUNC_HASH(module_start) | ||
PSP_EXPORT_VAR_HASH(module_info) | ||
PSP_EXPORT_END | ||
|
||
PSP_END_EXPORTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7z a -tzip ".\cleopsp.zip" ".\data\*" -xr!*.elf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.