Skip to content

Commit 9aaecd2

Browse files
authored
Merge pull request #3 from matbesancon/workflows
add workflow that builds bliss on different platforms for release or debug
2 parents eddc188 + 09a8c07 commit 9aaecd2

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
build:
11+
name: ${{ matrix.runner }} - ${{ matrix.buildtype }} - ${{ github.event_name }}
12+
runs-on: ${{ matrix.runner }}
13+
strategy:
14+
matrix:
15+
runner: [ubuntu-latest, ubuntu-24.04-arm, macos-15-intel, macos-latest, windows-latest, windows-11-arm]
16+
buildtype: [debug, release]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Create Build Environment
20+
run: cmake -E make_directory ${{runner.workspace}}/build
21+
22+
- name: Configure CMake
23+
shell: bash
24+
working-directory: ${{runner.workspace}}/build
25+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.buildtype}}
26+
27+
- name: Build
28+
working-directory: ${{runner.workspace}}/build
29+
# Execute the build. You can specify a specific target with "--target <NAME>"
30+
run: |
31+
cmake --build . --config ${{matrix.buildtype}}

0 commit comments

Comments
 (0)