-
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.
Merge pull request #8 from Zachareee/CI/CD
Automated build
- Loading branch information
Showing
148 changed files
with
217 additions
and
117,603 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ name: build | |
on: | ||
# Triggers the workflow on pull request events but only for the "main" branch | ||
push: | ||
branches: [ "master" ] | ||
branches: [ "master", "CI/CD" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
@@ -17,40 +17,40 @@ jobs: | |
windows-build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-latest | ||
permissions: | ||
contents: write | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Increment version | ||
uses: reecetech/[email protected] | ||
id: version | ||
uses: actions/checkout@v4 | ||
with: | ||
scheme: semver | ||
increment: patch | ||
submodules: 'recursive' | ||
|
||
- name: Installation | ||
run: | | ||
vcpkg install protobuf --triplet x86-windows-static | ||
vcpkg install protobuf --triplet x64-windows-static | ||
- name: Setup Developer CMD | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Build | ||
run: | | ||
python generate_build_win_bat.py | ||
./build_win_release_test.bat | ||
- name: Package | ||
run: | | ||
Compress-Archive release/* "goldberg-emulator-zachareee-${{ steps.version.outputs.version }}.zip" -CompressionLevel Optimal | ||
Compress-Archive release/* "goldberg-emulator-zachareee-${{ github.run_id }}.zip" -CompressionLevel Optimal | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "goldberg-emulator-zachareee-${{ steps.version.outputs.version }}.zip" | ||
artifacts: "goldberg-emulator-zachareee-${{ github.run_id }}.zip" | ||
replacesArtifacts: false | ||
allowUpdates: true | ||
generateReleaseNotes: true | ||
name: "Release v${{ steps.version.outputs.version }}" | ||
tag: "v${{ steps.version.outputs.version }}" | ||
name: "Release ${{ github.run_id }}" | ||
tag: "${{ github.run_id }}" |
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ out/* | |
__pycache__ | ||
scripts/backup | ||
scripts/*_output | ||
.secret |
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,6 @@ | ||
[submodule "stb"] | ||
path = stb | ||
url = https://github.com/nothings/stb.git | ||
[submodule "ingame_overlay"] | ||
path = ingame_overlay | ||
url = https://github.com/Nemirtingas/ingame_overlay |
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
Oops, something went wrong.