-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added gh-action to build and release (#4)
- Loading branch information
Showing
2 changed files
with
39 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,38 @@ | ||
name: Build and Release on Tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up MSVC environment | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Configure CMake | ||
run: cmake -B build -S . | ||
|
||
- name: Build | ||
run: cmake --build build --config Release | ||
|
||
- name: Archive Binaries | ||
run: | | ||
mkdir DCE-x86 | ||
cp "build/DiscCheckEmu APIHook/Release/DCEAPIHook.dll" DCE-x86/ | ||
cp "build/DiscCheckEmu Loader/Release/DCELoader.exe" DCE-x86/ | ||
cp "DCEConfig_TEMPLATE.yaml" DCE-x86/DCEConfig.yaml | ||
cp "README.md" DCE-x86/README.txt | ||
zip -r DiscCheckEmu-${{ github.ref_name }}-x86.zip DCE-x86/DCEAPIHook.dll DCE-x86/DCELoader.exe DCE-x86/DCEConfig.yaml DCE-x86/README.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: DiscCheckEmu-${{ github.ref_name }}-x86.zip |
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 @@ | ||
# THIS IS A DCE CONFIGURATION TEMPLATE |