Skip to content

Commit e03627e

Browse files
committed
更新build.yml
1 parent 0288342 commit e03627e

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up vcpkg
20+
uses: lukka/run-vcpkg@v11
21+
with:
22+
vcpkgGitCommitId: '2024.02.14'
23+
24+
- name: Install wxWidgets
25+
run: |
26+
vcpkg install wxwidgets:x64-windows-static
27+
28+
- name: Configure CMake
29+
run: |
30+
cmake -B ${{github.workspace}}/build `
31+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
32+
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake `
33+
-DwxWidgets_USE_STATIC=ON
34+
35+
- name: Build
36+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
37+
38+
- name: Upload artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: LaminaIDE-Windows
42+
path: ${{github.workspace}}/build/bin/Release/

0 commit comments

Comments
 (0)