-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.09 KB
/
os-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "OS Builds"
on:
push:
branches:
- 'master'
pull_request:
jobs:
os-build:
runs-on: ${{ matrix.os-version }}
strategy:
matrix:
os-version: [ubuntu-22.04, windows-2022, macos-12]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Python Requirements
run: python3 -m pip install cython wheel pytest build
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DKALEIDOSCOPE_ENABLE_TESTS=ON -DKALEIDOSCOPE_ENABLE_PACKAGE=ON -S . -B build
- name: Build
run: cmake --build build --parallel --config Release
- name: Install python package
run: python3 -m pip install --find-links=./build/python/dist/ LibKaleidoscope
- name: Run Tests
run: |
ctest --output-on-failure --test-dir build/tests --build-config Release
pytest python/python-tests.py
- name: Package
run: cmake --build build --parallel --target package --config Release
- uses: actions/upload-artifact@v3
with:
path: build/dist/*