Skip to content

Commit 7e38cb3

Browse files
committed
Update test workflows
1 parent 76b08fa commit 7e38cb3

3 files changed

Lines changed: 5 additions & 43 deletions

File tree

.github/workflows/test_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
matrix:
2929
os: [macos-14, macos-15, macos-26]
3030
c_compiler: [gcc-12, gcc-13, gcc-14, gcc-15, clang]
31-
bit7z_7zip_version: [23.01, 24.09]
31+
bit7z_7zip_version: [23.01, 26.00]
3232
bit7z_auto_format: [OFF, ON]
3333
bit7z_detect_from_extension: [OFF, ON]
3434
bit7z_regex_matching: [OFF, ON]

.github/workflows/test_ubuntu24.yml

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
bit7z_detect_from_extension: [OFF, ON]
3434
bit7z_regex_matching: [OFF, ON]
3535
bit7z_link_libcpp: [OFF, ON]
36-
bit7z_7zip_version: [16.02, 23.01, 24.09]
37-
bit7z_build_for_p7zip: [OFF, ON]
36+
bit7z_7zip_version: [23.01, 24.09, 26.00]
3837
include:
3938
- c_compiler: gcc-13
4039
cpp_compiler: g++-13
@@ -57,25 +56,11 @@ jobs:
5756
bit7z_link_libcpp: ON
5857
- c_compiler: clang-18 # re-enable once improved string conversions in bit7z
5958
bit7z_link_libcpp: ON
60-
- arch: arm64
61-
bit7z_7zip_version: 16.02
62-
- c_compiler: gcc-13
63-
bit7z_7zip_version: 16.02
64-
- c_compiler: clang-16
65-
bit7z_7zip_version: 16.02
66-
- c_compiler: clang-17
67-
bit7z_7zip_version: 16.02
68-
- bit7z_7zip_version: 16.02
69-
bit7z_build_for_p7zip: OFF
70-
- bit7z_7zip_version: 24.09
71-
bit7z_build_for_p7zip: ON
72-
- bit7z_7zip_version: 23.01
73-
bit7z_build_for_p7zip: ON
7459
- bit7z_auto_format: OFF
7560
bit7z_detect_from_extension: ON
7661

7762
name: |
78-
Ubuntu (${{ matrix.arch }}), ${{ matrix.c_compiler }}, 7-Zip ${{ matrix.bit7z_7zip_version }}${{ (matrix.bit7z_auto_format == 'ON') && ', AUTO_FORMAT' || '' }}${{ (matrix.bit7z_detect_from_extension == 'ON') && ', DETECT_FROM_EXT' || '' }}${{ (matrix.bit7z_regex_matching == 'ON') && ', REGEX_MATCHING' || '' }}${{ (matrix.bit7z_link_libcpp == 'ON') && ', LINK_LIBCPP' || '' }}${{ (matrix.bit7z_build_for_p7zip == 'ON') && ', BUILD_FOR_P7ZIP' || '' }}
63+
Ubuntu (${{ matrix.arch }}), ${{ matrix.c_compiler }}, 7-Zip ${{ matrix.bit7z_7zip_version }}${{ (matrix.bit7z_auto_format == 'ON') && ', AUTO_FORMAT' || '' }}${{ (matrix.bit7z_detect_from_extension == 'ON') && ', DETECT_FROM_EXT' || '' }}${{ (matrix.bit7z_regex_matching == 'ON') && ', REGEX_MATCHING' || '' }}${{ (matrix.bit7z_link_libcpp == 'ON') && ', LINK_LIBCPP' || '' }}
7964
8065
steps:
8166
- uses: actions/checkout@v4
@@ -95,29 +80,6 @@ jobs:
9580
if: ${{ matrix.bit7z_link_libcpp == 'ON' && contains(matrix.c_compiler, 'clang-18') }}
9681
run: sudo apt-get install libc++-18-dev libc++abi-18-dev -y
9782

98-
- name: Cache p7zip's 7z.so
99-
uses: actions/cache@v4
100-
id: cache-p7zip-so
101-
if: ${{ matrix.bit7z_build_for_p7zip == 'ON' }}
102-
with:
103-
path: ${{ github.workspace }}/build/p7zip/bin/7z.so
104-
key: ${{ runner.os }}-p7zip-x64-7z.so
105-
106-
- name: Fix missing p7zip shared library
107-
shell: bash
108-
if: ${{ steps.cache-p7zip-so.outputs.cache-hit != 'true' && matrix.bit7z_build_for_p7zip == 'ON' }}
109-
run: |
110-
git clone --depth 1 https://github.com/rikyoz/p7zip ${{ github.workspace }}/build/p7zip
111-
curl https://gist.githubusercontent.com/rikyoz/472257e7883054fdfcf7a7fac5715372/raw/11057145a6082615f4452f7f50da6e7b3d557f82/p7zip_gcc10.patch | git -C ${{ github.workspace }}/build/p7zip apply -v --no-index
112-
make -C ${{ github.workspace }}/build/p7zip 7z
113-
114-
- name: Install p7zip's 7z.so
115-
shell: bash
116-
if: ${{ matrix.bit7z_build_for_p7zip == 'ON' }}
117-
run: |
118-
sudo mkdir -p /usr/lib/p7zip
119-
sudo cp ${{ github.workspace }}/build/p7zip/bin/7z.so /usr/lib/p7zip/7z.so
120-
12183
- name: Building and testing bit7z
12284
uses: ./.github/actions/ci_action
12385
with:
@@ -126,4 +88,4 @@ jobs:
12688
cpp_compiler: ${{ matrix.cpp_compiler }}
12789
sevenzip_version: ${{ matrix.bit7z_7zip_version }}
12890
build_flags: |-
129-
-DBIT7Z_TESTS_USE_SYSTEM_7ZIP=${{ matrix.bit7z_build_for_p7zip }} -DBIT7Z_BUILD_FOR_P7ZIP=${{ matrix.bit7z_build_for_p7zip }} -DBIT7Z_AUTO_FORMAT=${{ matrix.bit7z_auto_format }} -DBIT7Z_DETECT_FROM_EXTENSION=${{ matrix.bit7z_detect_from_extension }} -DBIT7Z_REGEX_MATCHING=${{ matrix.bit7z_regex_matching }} -DBIT7Z_LINK_LIBCPP=${{ matrix.bit7z_link_libcpp }}
91+
-DBIT7Z_TESTS_USE_SYSTEM_7ZIP=OFF -DBIT7Z_BUILD_FOR_P7ZIP=OFF -DBIT7Z_AUTO_FORMAT=${{ matrix.bit7z_auto_format }} -DBIT7Z_DETECT_FROM_EXTENSION=${{ matrix.bit7z_detect_from_extension }} -DBIT7Z_REGEX_MATCHING=${{ matrix.bit7z_regex_matching }} -DBIT7Z_LINK_LIBCPP=${{ matrix.bit7z_link_libcpp }}

.github/workflows/test_windows25.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
bit7z_auto_prefix_long_paths: [OFF, ON]
3434
bit7z_use_system_codepage: [OFF, ON]
3535
bit7z_path_sanitization: [OFF, ON]
36-
bit7z_7zip_version: [23.01, 24.09]
36+
bit7z_7zip_version: [24.09, 26.00]
3737
exclude:
3838
- bit7z_auto_format: OFF
3939
bit7z_detect_from_extension: ON

0 commit comments

Comments
 (0)