-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (30 loc) · 899 Bytes
/
ci.yaml.yml
File metadata and controls
38 lines (30 loc) · 899 Bytes
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
name: CMake CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
# Run the job on a matrix of operating systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- name: Install on Linux
if: runner.os == 'Linux'
run: sudo apt-get install -y libimobiledevice-dev libimobiledevice-glue-dev
- name: Install on macOS
if: runner.os == 'macOS'
run: brew install libimobiledevice
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}/build
shell: bash # Use bash shell for consistent syntax across platforms
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest