Skip to content

Commit

Permalink
no test for bzip2 on win and cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Vollstrecker committed Jan 22, 2025
1 parent f8eefc6 commit 755c359
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,29 @@ jobs:
compiler: gcc
cflags: -Wall -Wextra
pkgtgt: package package_source
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON

- name: Ubuntu GCC -O3
os: ubuntu-latest
compiler: gcc
cflags: -O3 -Wall -Wextra
pkgtgt: package package_source
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON

- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
cflags: -Wall -Wextra
pkgtgt: package package_source
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON

- name: Ubuntu Clang Debug
os: ubuntu-latest
compiler: clang
cflags: -Wall -Wextra
build-config: Debug
pkgtgt: package package_source
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON

- name: Windows MSVC Win32
os: windows-latest
Expand Down Expand Up @@ -59,12 +63,14 @@ jobs:
compiler: clang
cflags: -Wall -Wextra
pkgtgt: package
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON

- name: macOS GCC
os: macos-latest
compiler: gcc-12
cflags: -Wall -Wextra
pkgtgt: package
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON

steps:
- name: Checkout repository
Expand All @@ -73,14 +79,14 @@ jobs:
- name: Install packages (Windows)
if: runner.os == 'Windows'
run: |
choco install --no-progress ninja bzip2
choco install --no-progress ninja
- name: Install packages (Linux)
if: runner.os == 'Linux'
run: |
apt install libbz2-dev
sudo apt install libbz2-dev
- name: Generate project files
run: cmake -S . -B ../build ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
run: cmake -S . -B ../build ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} -DZLIB_BUILD_MINIZIP=ON
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/msys-cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
uses: cygwin/cygwin-install-action@master
with:
packages: >-
bzip2
cmake
cygwin-devel
gcc-core
Expand All @@ -70,7 +69,6 @@ jobs:
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_BUILD_MINIZIP=ON \
-DMINIZIP_ENABLE_BZIP2=ON \
-G Ninja
- name: Build
run: cmake --build build --config Release -v -j1
Expand Down

0 comments on commit 755c359

Please sign in to comment.