This repository has been archived by the owner on Jul 14, 2024. It is now read-only.
ChatGPT's attempt at a workflow to build our project #1
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
# Authored in part or whole by ChatGPT | |
name: Windows Build with Visual Studio | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup MSVC Build Tools | |
uses: microsoft/setup-msbuild@v1 | |
- name: Run CMake configure | |
run: cmake -B build -S . | |
- name: Build project | |
run: cmake --build build --config Release | |
- name: Copy files into ZIP | |
run: | | |
cd out/build/x64-release | |
mkdir -p dist | |
cp *.dll student-sync.exe dist/ | |
zip -r StudentSync_Win32.zip dist/ | |
- name: Publish artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: StudentSync_Win32 | |
path: StudentSync_Win32.zip |