Skip to content

Commit

Permalink
[Test] Test multiple versions of 7-zip
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Oct 28, 2023
1 parent f997df6 commit 4bc88c4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/test_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
build_flags:
description: 'Build flags'
required: true
sevenzip_version:
description: 'Version of 7-Zip to use for the tests'
required: true

runs:
using: "composite"
Expand All @@ -33,6 +36,7 @@ runs:
-DCMAKE_BUILD_TYPE=${{ inputs.build_type }}
-DBIT7Z_BUILD_TESTS=ON
-DBIT7Z_ENABLE_SANITIZERS=ON
-DBIT7Z_7ZIP_VERSION=${{ inputs.sevenzip_version }}
${{ inputs.build_flags }}
-S ${{ github.workspace }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
bit7z_auto_format: [OFF, ON]
bit7z_regex_matching: [OFF, ON]
bit7z_link_libcpp: [OFF, ON]
bit7z_7zip_version: [22.01, 23.01]

steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +28,8 @@ jobs:
run: |
mkdir -p ${{ github.workspace }}/bin/x64/
git clone --depth 1 https://github.com/rikyoz/7-Zip ${{ github.workspace }}/../7-zip
git -C ${{ github.workspace }}/../7-zip fetch --tags
git -C ${{ github.workspace }}/../7-zip checkout v${{ matrix.bit7z_7zip_version }}
cd ${{ github.workspace }}/../7-zip/CPP/7zip/Bundles/Format7zF/
make -j -f ../../cmpl_mac_x64.mak
cp b/m_x64/7z.so ${{ github.workspace }}/bin/x64/7z.so
Expand All @@ -36,6 +39,7 @@ jobs:
with:
c_compiler: clang
cpp_compiler: clang++
sevenzip_version: ${{ matrix.bit7z_7zip_version }}
build_type: ${{ matrix.build_type }}
build_flags: |
-DBIT7Z_TESTS_USE_SYSTEM_7ZIP=OFF -DBIT7Z_AUTO_FORMAT=${{ matrix.bit7z_auto_format }} -DBIT7Z_REGEX_MATCHING=${{ matrix.bit7z_regex_matching }} -DBIT7Z_LINK_LIBCPP=${{ matrix.bit7z_link_libcpp }}
4 changes: 4 additions & 0 deletions .github/workflows/test_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
bit7z_auto_format: [OFF, ON]
bit7z_regex_matching: [OFF, ON]
bit7z_link_libcpp: [OFF, ON]
bit7z_7zip_version: [22.01, 23.01]
include:
- c_compiler: gcc
cpp_compiler: g++
Expand All @@ -36,6 +37,8 @@ jobs:
run: |
mkdir -p ${{ github.workspace }}/bin/x64/
git clone --depth 1 https://github.com/rikyoz/7-Zip ${{ github.workspace }}/../7-zip
git -C ${{ github.workspace }}/../7-zip fetch --tags
git -C ${{ github.workspace }}/../7-zip checkout v${{ matrix.bit7z_7zip_version }}
cd ${{ github.workspace }}/../7-zip/CPP/7zip/Bundles/Format7zF/
make -j -f ../../cmpl_gcc.mak
cp b/g/7z.so ${{ github.workspace }}/bin/x64/7z.so
Expand All @@ -47,6 +50,7 @@ jobs:
with:
c_compiler: ${{ matrix.c_compiler }}
cpp_compiler: ${{ matrix.cpp_compiler }}
sevenzip_version: ${{ matrix.bit7z_7zip_version }}
build_type: ${{ matrix.build_type }}
build_flags: |
-DBIT7Z_TESTS_USE_SYSTEM_7ZIP=OFF -DBIT7Z_AUTO_FORMAT=${{ matrix.bit7z_auto_format }} -DBIT7Z_REGEX_MATCHING=${{ matrix.bit7z_regex_matching }} -DBIT7Z_LINK_LIBCPP=${{ matrix.bit7z_link_libcpp }}
2 changes: 2 additions & 0 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
bit7z_auto_prefix_long_paths: [OFF, ON]
bit7z_use_system_codepage: [OFF, ON]
bit7z_path_sanitization: [OFF, ON]
bit7z_7zip_version: [22.01, 23.01]

steps:
- uses: actions/checkout@v3
Expand All @@ -31,5 +32,6 @@ jobs:
c_compiler: cl
cpp_compiler: cl
build_type: ${{ matrix.build_type }}
sevenzip_version: ${{ matrix.bit7z_7zip_version }}
build_flags: |
-DBIT7Z_TESTS_USE_SYSTEM_7ZIP=ON -DBIT7Z_AUTO_FORMAT=${{ matrix.bit7z_auto_format }} -DBIT7Z_REGEX_MATCHING=${{ matrix.bit7z_regex_matching }} -DBIT7Z_USE_NATIVE_STRING=${{ matrix.bit7z_use_native_string }} -DBIT7Z_AUTO_PREFIX_LONG_PATHS=${{ matrix.bit7z_auto_prefix_long_paths }} -DBIT7Z_USE_SYSTEM_CODEPAGE=${{ matrix.bit7z_use_system_codepage }} -DBIT7Z_PATH_SANITIZATION=${{ matrix.bit7z_path_sanitization }}

0 comments on commit 4bc88c4

Please sign in to comment.