-
Notifications
You must be signed in to change notification settings - Fork 0
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
196c614
commit 4b4be6b
Showing
107 changed files
with
9,234 additions
and
0 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,22 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
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.PCSX2F.CLEO.sln /property:Configuration=Release | ||
- name: Pack binaries | ||
shell: cmd | ||
run: release.bat | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cleops2 | ||
path: | | ||
data//* | ||
!**/*.map | ||
- 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.PCSX2F.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: cleops2.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.PCSX2F.CLEO' | ||
uses: richardsimko/[email protected] | ||
with: | ||
tag_name: ${{ steps.release_info.outputs.tag_name }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.