Skip to content

Commit 6a93825

Browse files
committed
CI: Add GitHub Actions cross-platform build
1 parent 89f6172 commit 6a93825

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: cppbase-cross-platform-build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: ${{ matrix.os }} build
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macos-latest]
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure CMake
15+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
16+
- name: Build
17+
run: cmake --build ${{github.workspace}}/build --config Release --parallel 4

0 commit comments

Comments
 (0)