Skip to content

Commit 5307c81

Browse files
Refactor cross-platform CMake workflow
Updated the CMake workflow for cross-platform builds, simplifying the matrix configuration and removing unused variables.
1 parent 62d7d7b commit 5307c81

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Cross-Platform CMake Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
name: Build on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, windows-latest]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Configure CMake
24+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
25+
26+
- name: Build project
27+
run: cmake --build ${{github.workspace}}/build --config Release

0 commit comments

Comments
 (0)