Skip to content

Commit 110d1cf

Browse files
Github action for windows build of what we need
1 parent 7b98059 commit 110d1cf

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build-dlubal.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Windows build
2+
3+
on:
4+
push:
5+
branches:
6+
- dlubal
7+
workflow_dispatch:
8+
9+
env:
10+
BUILD_TYPE: Release
11+
BUILD_DIR: ${{github.workspace}}/build/bin/Release
12+
13+
jobs:
14+
build:
15+
runs-on: windows-2022
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Configure CMake
21+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
22+
23+
- name: Build
24+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
25+
26+
- name: Remove unnecessary files
27+
run: |
28+
rm -R -Force ${{env.BUILD_DIR}}/addons
29+
del ${{env.BUILD_DIR}}/*.pdb
30+
del ${{env.BUILD_DIR}}/dmake.*
31+
32+
- name: Upload build artifacts
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: build-win64
36+
path: ${{env.BUILD_DIR}}
37+
38+

0 commit comments

Comments
 (0)