-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI for MMDevice/MMCore experimental Meson build
- Loading branch information
1 parent
8c02aaa
commit 78f9ea9
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: MMDevice/MMCore experimental Meson build & tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- MMDevice/** | ||
- MMCore/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- MMDevice/** | ||
- MMCore/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- windows | ||
- macos | ||
- ubuntu | ||
include: | ||
- os: windows | ||
runner: windows-2019 | ||
cxx: cl | ||
- os: macos | ||
runner: macos-11 | ||
cxx: clang++ | ||
- os: ubuntu | ||
runner: ubuntu-22.04 | ||
cxx: g++ | ||
name: ${{ matrix.runner }}-${{ matrix.cxx }} | ||
runs-on: ${{ matrix.runner }} | ||
env: | ||
CXX: ${{ matrix.cxx }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install tools | ||
run: | | ||
python -m pip install --upgrade pip meson ninja | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
vsversion: '2019' | ||
- name: Build and test MMDevice | ||
run: | | ||
cd MMDevice | ||
meson setup builddir --buildtype debug | ||
meson test -C builddir --print-errorlogs | ||
- name: Prepare MMCore source | ||
shell: bash | ||
run: | | ||
git clean -dxf | ||
cp -R MMDevice MMCore/subprojects | ||
- name: Build and test MMCore | ||
run: | | ||
cd MMCore | ||
meson setup builddir --buildtype debug | ||
meson test -C builddir --print-errorlogs |