-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (67 loc) · 2.16 KB
/
ci.yml
File metadata and controls
78 lines (67 loc) · 2.16 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: 'CI - CAE'
run-name: 'CAE - "${{ github.ref_name }}"'
permissions:
contents: read
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
build:
name: ''
if: github.actor != 'dependabot[bot]'
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
shell: bash
build: scripts/unix/build.sh release
binary: cmake-build-release/bin/cae
build_test: scripts/unix/build.sh release --tests
binary_test: cmake-build-release/bin/cae-tests
deps: |
./scripts/unix/linux/install-cmake.sh
sudo apt update && sudo apt install -y xorg-dev libegl1-mesa-dev
- os: macos-15
shell: bash
build: scripts/unix/build.sh release
binary: cmake-build-release/bin/cae
build_test: scripts/unix/build.sh release --tests
binary_test: cmake-build-release/bin/cae-tests
deps: echo ""
- os: windows-2025
shell: powershell
build: |
cmake -S . -G "Ninja" -B cmake-build-release -DCMAKE_BUILD_TYPE=Release
cmake --build cmake-build-release --config Release
binary: cmake-build-release\bin\cae.exe
build_test: |
cmake -S . -G "Ninja" -B cmake-build-release -DCMAKE_BUILD_TYPE=Release -DCAE_BUILD_TESTS=ON
cmake --build cmake-build-release --config Release
binary_test: cmake-build-release\bin\cae-tests.exe
deps: choco install cmake -y
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@v6.0.2
with:
ref: ${{ github.ref }}
repository: '${{ github.repository }}'
fetch-depth: 1
submodules: recursive
- name: install dependencies
run: ${{ matrix.deps }}
- name: Build release
run: ${{ matrix.build }}
- name: Build test
run: ${{ matrix.build_test }}
- name: Run tests
run: ./${{ matrix.binary_test }}