-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.23 KB
/
test.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
36
37
38
39
40
41
name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-22.04 macos-latest windows-2019]
runs-on: ${{matrix.os}}
steps:
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/checkout@v3
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
- name: Build Windows
if: matrix.os == 'windows-2019'
shell: powershell
run: |
conan remote add artifactory http://localhost:8081/artifactory/api/conan/conan-local
conan profile detect --force
conan install . --output-folder=build --build=missing
cmake .. -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
cmake --build . --config Release
Release\sscad.exe
- name: Build Unix
if: matrix.os != 'windows-2019'
run: |
conan remote add artifactory http://localhost:8081/artifactory/api/conan/conan-local
conan profile detect --force
conan install . --output-folder=build --build=missing
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build .
./sscad