Skip to content

Commit

Permalink
Restructure and add missing VS project files
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed Oct 20, 2023
1 parent b8fb18f commit 1a581ba
Show file tree
Hide file tree
Showing 26 changed files with 5,443 additions and 700 deletions.
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/other.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/binaries.sh
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/
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
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
54 changes: 54 additions & 0 deletions .github/workflows/releases.yml
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
13 changes: 0 additions & 13 deletions .gitpod.yml

This file was deleted.

132 changes: 0 additions & 132 deletions CODE_OF_CONDUCT.md

This file was deleted.

Loading

0 comments on commit 1a581ba

Please sign in to comment.