Skip to content

Commit 8b29c8e

Browse files
committed
Setup Github Actions for CMake
1 parent cf9e5c5 commit 8b29c8e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/windows.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
working-directory: ${{github.workspace}}/main
1818
steps:
1919
- name: Get AV
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
path: main
2323
- name: Get MSBuild
@@ -26,20 +26,18 @@ jobs:
2626
run: >
2727
curl https://www.rarewares.org/files/ogg/oggenc2.88-1.3.7-x64.zip --output oggenc.zip &&
2828
unzip oggenc.zip -d .
29+
- name: Configure CMake
30+
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
2931
- name: Build AV
30-
run: msbuild build\VisualStudio\ArrowVortex.vcxproj /p:Configuration=Release /p:Platform=x64
32+
run: cmake --build build --config Release
3133
- name: Collect into a directory
3234
run: |
3335
mkdir AV
34-
cd AV
35-
cp -r ../bin/assets .
36-
cp -r ../bin/noteskins .
37-
cp -r ../bin/settings .
38-
cp ../bin/ArrowVortex.exe .
39-
cp ../oggenc2.exe .
36+
cmake --install build --config Release --prefix ./AV
37+
mv oggenc2.exe AV/bin
4038
- name: Upload artifact
4139
uses: actions/upload-artifact@v4
4240
with:
4341
name: AV
44-
path: main/AV/
42+
path: main/AV/bin
4543
if-no-files-found: error

0 commit comments

Comments
 (0)