Skip to content

[Test-macOS] Fix build using GCC on macOS #24

[Test-macOS] Fix build using GCC on macOS

[Test-macOS] Fix build using GCC on macOS #24

Workflow file for this run

name: Test bit7z on Ubuntu with multiple configurations
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request'
|| contains(github.event.head_commit.message, '[test]')
|| contains(github.event.head_commit.message, '[test-linux]')
|| startsWith(github.ref, 'refs/tags/v')
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
c_compiler: [gcc, clang]
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++
use_system_7zip: OFF
- c_compiler: clang
cpp_compiler: clang++
use_system_7zip: OFF
exclude:
- c_compiler: gcc
bit7z_link_libcpp: ON
steps:
- uses: actions/checkout@v3
- name: Building and testing bit7z
uses: ./.github/actions/test_action
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 }}