-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.32 KB
/
unit_tests.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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test build
on:
workflow_dispatch:
push:
branches: ["develop"]
pull_request:
branches:
- "develop"
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
jobs:
debian:
name: Debian 12
runs-on: ubuntu-latest
container: ghcr.io/educelab/ci-docker:base.12.1
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build vc-deps
run: |
cmake -S . -B build/ -GNinja -DCMAKE_BUILD_TYPE=Release
cmake --build build/
macos:
name: macOS
runs-on: macos-14
timeout-minutes: 180
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Homebrew dependencies
run: |
brew update
brew unlink libtiff libpng
brew install ninja
- name: Remove conflicting packages
run: |
sudo rm -rf /Library/Frameworks/Mono.framework/
- name: Use the Command Line Tools
run: |
sudo xcode-select -s /Library/Developer/CommandLineTools
- name: Build vc-deps
run: |
cmake -S . -B build/ -GNinja -GNinja -DCMAKE_BUILD_TYPE=Release
cmake --build build/