-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from mrexodia/gh-actions
Build TitanHide with GitHub Actions
- Loading branch information
Showing
6 changed files
with
83 additions
and
18 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,42 @@ | ||
name: Visual Studio | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
# Skip building pull requests from the same repository | ||
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
msbuild.exe ${{ github.event.repository.name }}.sln /m /verbosity:minimal /t:Rebuild /p:Configuration=Release /p:Platform=x64 | ||
msbuild.exe ${{ github.event.repository.name }}.sln /m /verbosity:minimal /t:Rebuild /p:Configuration=Release /p:Platform=Win32 | ||
./release.bat | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.event.repository.name }}-${{ github.sha }} | ||
path: bin/ | ||
|
||
- name: Compress artifacts | ||
uses: papeloto/action-zip@v1 | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
with: | ||
files: bin/ | ||
dest: ${{ github.event.repository.name }}-${{ github.sha }}.zip | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
with: | ||
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }} | ||
files: ${{ github.event.repository.name }}-${{ github.sha }}.zip | ||
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 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
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
@echo off | ||
rmdir /S /Q bin | ||
mkdir bin\x32\plugins | ||
mkdir bin\x64\plugins | ||
mkdir bin\x32 | ||
mkdir bin\x64 | ||
|
||
copy Win7Release\*.* bin\x32\ | ||
copy Release\*.exe bin\x32\ | ||
copy Release\*.dll bin\x32\plugins\ | ||
copy Release\TitanHide.dp32 bin\x32\plugins\ | ||
copy x64\Win7Release\*.* bin\x64\ | ||
copy x64\Release\*.exe bin\x64\ | ||
copy x64\Release\*.dll bin\x64\plugins\ | ||
copy x64\Release\TitanHide.dp64 bin\x64\plugins\ | ||
xcopy /s /q Release\* bin\x32\ | ||
xcopy /s /q x64\Release\* bin\x64\ |