-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure and add missing VS project files
- Loading branch information
1 parent
b8fb18f
commit 1a581ba
Showing
26 changed files
with
5,443 additions
and
700 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
#!/bin/bash | ||
# Packs up the created binaries by the release workflow | ||
# which are then uploaded as release assets in any release. | ||
|
||
mkdir -p binaries | ||
|
||
cd x64/Release | ||
7z a -mx=9 -tzip ../../tic_tac_toe-x64.zip tic_tac_toe.exe | ||
cd ../.. | ||
7z a -mx=9 -tzip tic_tac_toe-x64.zip vc_redistributable_links.txt | ||
|
||
cd x64/Release | ||
7z a -mx=9 -ttar ../../tic_tac_toe-x64.tar tic_tac_toe.exe | ||
cd ../.. | ||
7z a -mx=9 -ttar tic_tac_toe-x64.tar vc_redistributable_links.txt | ||
|
||
cd Release | ||
7z a -mx=9 -tzip ../tic_tac_toe-x86.zip tic_tac_toe.exe | ||
cd .. | ||
7z a -mx=9 -tzip tic_tac_toe-x86.zip vc_redistributable_links.txt | ||
|
||
cd Release | ||
7z a -mx=9 -ttar ../tic_tac_toe-x86.tar tic_tac_toe.exe | ||
cd .. | ||
7z a -mx=9 -ttar tic_tac_toe-x86.tar vc_redistributable_links.txt | ||
|
||
# Use the GZip compression algorithm | ||
7z a -mx=9 -tgzip tic_tac_toe-x64.tar.gz tic_tac_toe-x64.tar | ||
7z a -mx=9 -tgzip tic_tac_toe-x86.tar.gz tic_tac_toe-x86.tar | ||
|
||
# We're going to use TAR.GZ files | ||
rm tic_tac_toe-x64.tar | ||
rm tic_tac_toe-x86.tar | ||
|
||
mv tic_tac_toe-x64.zip binaries/ | ||
mv tic_tac_toe-x64.tar.gz binaries/ | ||
mv tic_tac_toe-x86.zip binaries/ | ||
mv tic_tac_toe-x86.tar.gz binaries/ |
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,13 @@ | ||
name: Build Windows Forms app | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
build: | ||
runs-on: [windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
- name: Create 64-bit Release build | ||
run: msbuild.exe /p:Configuration=Release /p:Platform=x64 tic_tac_toe.sln | ||
- name: Create 32-bit Release build | ||
run: msbuild.exe /p:Configuration=Release /p:Platform=x86 tic_tac_toe.sln |
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,54 @@ | ||
name: Create binaries on release | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
release: | ||
runs-on: [windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
- name: Create 64-bit Release build | ||
run: msbuild.exe /p:Configuration=Release /p:Platform=x64 tic_tac_toe.sln | ||
- name: Create 32-bit Release build | ||
run: msbuild.exe /p:Configuration=Release /p:Platform=x86 tic_tac_toe.sln | ||
- name: Pack the binaries into a ZIP and TAR.GZ files | ||
shell: bash | ||
run: bash .github/workflows/binaries.sh | ||
- name: Upload 64-bit ZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./binaries/tic_tac_toe-x64.zip | ||
asset_name: tic_tac_toe-x64.zip | ||
asset_content_type: application/zip | ||
- name: Upload 64-bit GZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./binaries/tic_tac_toe-x64.tar.gz | ||
asset_name: tic_tac_toe-x64.tar.gz | ||
asset_content_type: application/gzip | ||
- name: Upload 32-bit ZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./binaries/tic_tac_toe-x86.zip | ||
asset_name: tic_tac_toe-x86.zip | ||
asset_content_type: application/zip | ||
- name: Upload 32-bit GZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./binaries/tic_tac_toe-x86.tar.gz | ||
asset_name: tic_tac_toe-x86.tar.gz | ||
asset_content_type: application/gzip |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.