forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (84 loc) · 2.75 KB
/
on_push_BasicWinLinMac.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Basic CI for all platforms on push
# Note that we want to run this as fast as possible and just for the more common configurations. On
# PRs, we will test things more intensively :)
# - Only running UnitTests and not regression tests
on:
push:
paths-ignore:
- "*.md"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: On PUSH - Basic CI for main platforms
jobs:
windows:
name: 'Win10 Arch:x64 BuildType:Release - SHARED'
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Set up Visual Studio shell
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Restore conan cache
uses: actions/cache@v3
with:
path: ${{github.workspace}}/conanCache
key: ${{runner.os}}-push-win-${{ hashFiles('conanfile.py') }}
- name: Install Conan & Common config
run: |
python -m pip install conan==1.59.0
conan profile new --detect default
conan profile show default
conan profile update settings.compiler="Visual Studio" default
conan profile update settings.compiler.version=17 default
conan config set storage.path=$Env:GITHUB_WORKSPACE/conanCache
- name: Build
run: |
cmake --preset win-release -S . -B build
cmake --build build --parallel
- name: Test
run: |
cd build
ctest --output-on-failure
Linux:
name: 'Ubuntu 22.04 - GCC - Arch:x64 BuildType:Release - SHARED'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
python3 -m pip install conan==1.59.0 ninja
- name: Conan
run: |
mkdir build && cd build
conan profile new --detect default
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile show default
conan install .. -o webready=True --build missing
- name: build and compile
run: |
cmake --preset linux-release -S . -B build
cmake --build build --parallel
- name: Test
run: |
cd build
ctest --output-on-failure
MacOS:
name: 'MacOS - clang - Arch:x64 BuildType:Release - SHARED'
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
brew install ninja
brew install inih
brew install googletest
- name: build and compile
run: |
cmake --preset base_mac -S . -B build
cmake --build build --parallel
- name: Test
run: |
cd build
ctest --output-on-failure