Skip to content

Commit 4d44f9c

Browse files
committed
Forward CI changes
1 parent 29cc981 commit 4d44f9c

File tree

5 files changed

+120
-42
lines changed

5 files changed

+120
-42
lines changed

.github/workflows/on_PR_linux_matrix.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
tree install
4848
4949
- name: Test
50-
env:
51-
EXIV2_EXT: .exe
5250
run: |
5351
cd build
5452
ctest --output-on-failure

.github/workflows/on_PR_linux_special_buils.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
3737
cmake --build .
3838
3939
- name: Tests + Upload coverage
40-
env:
41-
EXIV2_EXT: .exe
4240
run: |
4341
cd build
4442
ctest --output-on-failure
@@ -85,8 +83,6 @@ jobs:
8583
cmake --build .
8684
8785
- name: Tests with valgrind
88-
env:
89-
EXIV2_EXT: .exe
9086
run: |
9187
cd build/bin
9288
valgrind ./unit_tests
@@ -123,8 +119,6 @@ jobs:
123119
cmake --build .
124120
125121
- name: Tests
126-
env:
127-
EXIV2_EXT: .exe
128122
run: |
129123
cd build
130124
ctest --output-on-failure
@@ -163,21 +157,3 @@ jobs:
163157
- name: Generate documentation
164158
run: |
165159
make doc
166-
167-
special_FedoraMinGW:
168-
name: 'Fedora MinGW'
169-
runs-on: ubuntu-latest
170-
container:
171-
image: "fedora:latest"
172-
173-
steps:
174-
- uses: actions/checkout@v2
175-
176-
- name: install dependencies
177-
run: |
178-
dnf -y upgrade
179-
dnf -y install mingw64-gcc-c++ mingw64-filesystem mingw64-expat mingw64-zlib cmake make
180-
181-
- name: Build
182-
run:
183-
python3 ci/test_build.py --without-tests --cmake-executable "mingw64-cmake" --cmake-options "-DEXIV2_TEAM_EXTRA_WARNINGS=OFF -DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_WIN_UNICODE=ON " --compilers --shared-libs OFF

.github/workflows/on_PR_mac_matrix.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
cmake --build . --target install
4141
4242
- name: Test
43-
env:
44-
EXIV2_EXT: .exe
4543
run: |
4644
cd build
4745
ctest --output-on-failure

.github/workflows/on_PR_windows_matrix.yml

Lines changed: 120 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
build_type: [Release, Debug]
2020
shared_libraries: [ON, OFF]
2121
platform: [ x64, x86 ]
22-
22+
2323
steps:
2424
- uses: actions/checkout@v2
2525

@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
arch: ${{matrix.platform}}
3030

31-
- name: Setup Ninja
31+
- name: Set up Ninja
3232
uses: ashutoshvarma/setup-ninja@master
3333
with:
3434
version: 1.10.0
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
python-version: 3.7
4040

41-
- name: Restore conan cache
41+
- name: Restore Conan cache
4242
uses: actions/cache@v2
4343
with:
4444
path: ${{github.workspace}}/conanCache
@@ -68,23 +68,131 @@ jobs:
6868
conan install .. --build missing
6969
dir ..
7070
tree /f ../conanCache
71-
71+
7272
- name: Build
7373
run: |
74-
cd build
75-
cmake -GNinja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=ON -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_BUILD_UNIT_TESTS=ON -DEXIV2_ENABLE_WIN_UNICODE=OFF -DEXIV2_TEAM_WARNINGS_AS_ERRORS=ON -DEXIV2_ENABLE_BMFF=ON -DCMAKE_INSTALL_PREFIX=install ..
76-
ninja
74+
cmake -GNinja `
75+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} `
76+
-DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} `
77+
-DEXIV2_ENABLE_NLS=OFF `
78+
-DEXIV2_ENABLE_WIN_UNICODE=OFF `
79+
-DEXIV2_ENABLE_WEBREADY=ON `
80+
-DEXIV2_ENABLE_BMFF=ON `
81+
-DEXIV2_BUILD_UNIT_TESTS=ON `
82+
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=ON `
83+
-DCMAKE_INSTALL_PREFIX=install `
84+
-S . -B build && `
85+
cmake --build build
7786
7887
- name: Install
7988
run: |
8089
cd build
81-
ninja install
90+
cmake --install .
8291
tree /f install
8392
8493
- name: Test
8594
if: ${{matrix.platform == 'x64'}}
86-
env:
87-
EXIV2_EXT: .exe
8895
run: |
89-
cd build
90-
ctest --output-on-failure
96+
ctest --test-dir build --output-on-failure
97+
98+
msys2:
99+
runs-on: windows-latest
100+
strategy:
101+
fail-fast: false
102+
matrix:
103+
build_type: [Release, Debug]
104+
shared_libraries: [ON, OFF]
105+
sys: [MINGW64]
106+
name: MSYS2 ${{matrix.sys}} - BuildType:${{matrix.build_type}} - SHARED:${{matrix.shared_libraries}}
107+
defaults:
108+
run:
109+
shell: msys2 {0}
110+
steps:
111+
- uses: actions/checkout@v2
112+
113+
- name: Set up MSYS2
114+
uses: msys2/setup-msys2@v2
115+
with:
116+
msystem: ${{matrix.sys}}
117+
update: true
118+
install: >-
119+
base-devel
120+
pacboy: >-
121+
toolchain:p
122+
cmake:p
123+
ninja:p
124+
expat:p
125+
gettext:p
126+
gtest:p
127+
libiconv:p
128+
python-lxml:p
129+
zlib:p
130+
131+
- name: Build
132+
run: |
133+
cmake -GNinja \
134+
-DCMAKE_CXX_FLAGS=-Wno-deprecated \
135+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
136+
-DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} \
137+
-DEXIV2_ENABLE_NLS=ON \
138+
-DEXIV2_ENABLE_WIN_UNICODE=ON \
139+
-DEXIV2_ENABLE_WEBREADY=ON \
140+
-DEXIV2_ENABLE_BMFF=ON \
141+
-DEXIV2_BUILD_UNIT_TESTS=ON \
142+
-S . -B build && \
143+
cmake --build build
144+
145+
- name: Test
146+
run: |
147+
ctest --test-dir build --output-on-failure
148+
149+
cygwin:
150+
runs-on: windows-latest
151+
strategy:
152+
fail-fast: false
153+
matrix:
154+
build_type: [Release]
155+
shared_libraries: [ON]
156+
platform: [x64]
157+
name: Cygwin ${{matrix.platform}} - BuildType:${{matrix.build_type}} - SHARED:${{matrix.shared_libraries}}
158+
env:
159+
SHELLOPTS: igncr
160+
defaults:
161+
run:
162+
shell: C:\tools\cygwin\bin\bash.exe -eo pipefail '{0}'
163+
steps:
164+
# Make sure we don't check out scripts using Windows CRLF line endings
165+
- run: git config --global core.autocrlf input
166+
shell: pwsh
167+
- uses: actions/checkout@v2
168+
169+
- name: Set up Cygwin
170+
uses: egor-tensin/setup-cygwin@v3
171+
with:
172+
platform: ${{matrix.platform}}
173+
packages: >-
174+
gcc-g++
175+
cmake
176+
ninja
177+
libexpat-devel
178+
libxml2-devel
179+
libxslt-devel
180+
python38-lxml
181+
zlib-devel
182+
- name: Build
183+
run: |
184+
cmake -GNinja \
185+
-DCMAKE_CXX_FLAGS=-Wno-deprecated \
186+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
187+
-DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} \
188+
-DEXIV2_ENABLE_NLS=OFF \
189+
-DEXIV2_ENABLE_WIN_UNICODE=OFF \
190+
-DEXIV2_ENABLE_WEBREADY=ON \
191+
-DEXIV2_ENABLE_BMFF=ON \
192+
-DEXIV2_BUILD_UNIT_TESTS=OFF \
193+
-S . -B build && \
194+
cmake --build build
195+
196+
- name: Test
197+
run: |
198+
ctest --test-dir build --output-on-failure

.github/workflows/on_push_ExtraJobsForMain.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ jobs:
3838
make -j
3939
4040
- name: Tests + Upload coverage
41-
env:
42-
EXIV2_EXT: .exe
4341
run: |
4442
cd build
4543
ctest --output-on-failure

0 commit comments

Comments
 (0)