Upload Apkdiff Module Source Code

This commit is contained in:
2026-07-04 22:01:38 +08:00
parent dfdbf3acf6
commit 05c93e5ce9
283 changed files with 71378 additions and 0 deletions

View File

@@ -0,0 +1,254 @@
name: C Standard
# Compile with as many C standards as possible.
# The worflow is setup to fail on any compilation warnings.
on:
workflow_dispatch:
push:
pull_request:
jobs:
main:
name: ${{ matrix.os.name }} ${{ matrix.compiler }} ${{ matrix.arch.name }} ${{ matrix.std.name }} ${{ matrix.builder }}
runs-on: ${{ matrix.os.value }}
strategy:
fail-fast: false
matrix:
os:
- name: Linux
value: ubuntu-latest
- name: MacOS
value: macos-latest
- name: Windows
value: windows-latest
cmake-opt: -G Ninja
- name: Windows ARM64
value: windows-11-arm
cmake-opt: -G Ninja
compiler:
- gcc
- clang
arch:
- name: 64-bit
tag: amd64
compiler-opt: -m64
cmake-opt: -A x64
- name: 32-bit
tag: i386
compiler-opt: -m32
cmake-opt: -A Win32
builder:
- configure
- cmake
std:
- name: c89
value: c89
compiler-opt: -DZLIB_INSECURE
- name: gnu89
value: gnu89
compiler-opt: -DZLIB_INSECURE
- name: c94
value: iso9899:199409
compiler-opt: -DZLIB_INSECURE
- name: c99
value: c99
- name: gnu99
value: gnu99
- name: c11
value: c11
- name: gnu11
value: gnu11
- name: c17
value: c17
- name: gnu17
value: gnu17
- name: c2x
value: c2x
- name: gnu2x
value: gnu2x
exclude:
# Don't run 32-bit on MacOS
- { os: { name: MacOS },
arch: { tag: i386 } }
# Don't run configure on Windows
- { os: { name: Windows },
builder: configure }
# Don't run configure on Windows ARM64
- { os: { name: Windows ARM64 },
builder: configure }
# Don't run gcc 32-bit on Windows
- { os: { name: Windows },
arch: { tag: i386 } }
# Don't run 32 bit on Windows ARM64
- { os: { name: Windows ARM64 },
arch: { tag: i386 } }
# Don't run gcc on Windows ARM64
- { os: { name: Windows ARM64 },
compiler: gcc }
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Install packages (Linux)
if: runner.os == 'Linux' && matrix.arch.tag == 'i386'
run: |
sudo apt-get update
sudo apt install gcc-multilib libc6-dev-i386-cross
- name: Install packages (Windows)
if: runner.os == 'Windows'
run: |
choco install --no-progress ninja
- name: Generate project files (configure)
if: matrix.builder == 'configure'
run: |
./configure
env:
CC: ${{ matrix.compiler }}
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
- name: Compile source code (configure)
if: matrix.builder == 'configure'
run: make -j2
- name: Run test cases (configure)
if: matrix.builder == 'configure'
run: |
make test
# make cover
- name: Generate project files (cmake)
if: matrix.builder == 'cmake'
run: |
cmake -S . -B ./build -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_TESTING=OFF -DZLIB_BUILD_MINIZIP=OFF
env:
CC: ${{ matrix.compiler }}
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
- name: Compile source code (cmake)
if: matrix.builder == 'cmake'
run: cmake --build ./build --config Release
- name: Run test cases (cmake)
if: matrix.builder == 'cmake'
run: ctest ./build -C Release --output-on-failure --max-width 120
msvc:
name: ${{ matrix.os.name }} ${{ matrix.compiler }} ${{ matrix.arch.name }} ${{ matrix.std.name }} ${{ matrix.builder }}
runs-on: ${{ matrix.os.value }}
strategy:
fail-fast: false
matrix:
os:
- name: Windows
value: windows-latest
- name: Windows ARM64
value: windows-11-arm
compiler:
- cl
arch:
- name: 32-bit
value: -A Win32
- name: 64-bit
value: -A x64
- name: ARM64
value: -A ARM64
builder:
- cmake
std:
- name: default
value: ""
- name: C11
value: /std:c11
- name: C17
value: /std:c17
# not available on the runner yet
# - name: C20
# value: /std:c20
- name: latest
value: /std:clatest
exclude:
# Don't run 32-bit on Windows ARM64
- { os: { name: Windows ARM64 },
arch: { name: 32-bit } }
# Don't run x64 on Windows ARM64
- { os: { name: Windows ARM64 },
arch: { name: 64-bit } }
# Don't run ARM64 on regular Windows
- { os: { name: Windows },
arch: { name: ARM64 } }
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Generate project files (cmake)
run: |
cmake -S . -B ./build1 ${{ matrix.arch.value }} -D CMAKE_BUILD_TYPE=Release -DZLIB_BUILD_TESTING=OFF
env:
CC: ${{ matrix.compiler }}
CFLAGS: /WX ${{ matrix.std.value }}
- name: Generate project files with tests (cmake)
run: |
cmake -S . -B ./build2 ${{ matrix.arch.value }} -D CMAKE_BUILD_TYPE=Release -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=OFF
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.std.value }}
- name: Compile source code (cmake)
run: cmake --build ./build1 --config Release -v
- name: Compile source code with tests(cmake)
run: cmake --build ./build2 --config Release -v
- name: Run test cases (cmake)
run: ctest ./build2 -C Release --output-on-failure --max-width 120

View File

@@ -0,0 +1,147 @@
name: CMake
on: [push, pull_request]
jobs:
ci-cmake:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu GCC
os: ubuntu-latest
compiler: gcc
cflags: -Wall -Wextra
pkgtgt: package package_source
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON
- name: Ubuntu GCC no shared
os: ubuntu-latest
compiler: gcc
cflags: -Wall -Wextra
pkgtgt: package package_source
cmake-args: -DZLIB_BUILD_SHARED=OFF -DMINIZIP_ENABLE_BZIP2=ON
- name: Ubuntu GCC no static
os: ubuntu-latest
compiler: gcc
cflags: -Wall -Wextra
pkgtgt: package package_source
cmake-args: -DZLIB_BUILD_STATIC=OFF -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
compiler: cl
cflags: /W3
cmake-args: -A Win32
pkgtgt: PACKAGE
- name: Windows MSVC Win64
os: windows-latest
compiler: cl
cflags: /W3
cmake-args: -A x64 -DMINIZIP_ENABLE_BZIP2=OFF
pkgtgt: PACKAGE
- name: Windows MSVC ARM64
os: windows-11-arm
compiler: cl
cflags: /W3
cmake-args: -A ARM64 -DMINIZIP_ENABLE_BZIP2=OFF
pkgtgt: PACKAGE
- name: Windows GCC
os: windows-latest
compiler: gcc
cflags: -Wall -Wextra
cmake-args: -G Ninja -DMINIZIP_ENABLE_BZIP2=OFF
pkgtgt: package
- name: macOS Clang
os: macos-latest
compiler: clang
cflags: -Wall -Wextra
pkgtgt: package
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON
- name: macOS GCC 13
os: macos-latest
compiler: gcc-13
cflags: -Wall -Wextra
pkgtgt: package
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON
- name: macOS GCC 14
os: macos-latest
compiler: gcc-14
cflags: -Wall -Wextra
pkgtgt: package
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON
- name: macOS GCC 15
os: macos-latest
compiler: gcc-15
cflags: -Wall -Wextra
pkgtgt: package
cmake-args: -DMINIZIP_ENABLE_BZIP2=ON
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install packages (Windows)
if: runner.os == 'Windows'
run: |
choco install --no-progress nsis
- name: Install packages (Linux)
if: runner.os == 'Linux'
run: |
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
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }}
- name: Compile source code
run: cmake --build ../build --config ${{ matrix.build-config || 'Release' }}
- name: Run test cases
run: ctest -C Release --output-on-failure --max-width 120
working-directory: ../build
- name: create packages
run: cmake --build ../build --config ${{ matrix.build-config || 'Release' }} -t ${{ matrix.pkgtgt }}
- name: Upload build errors
uses: actions/upload-artifact@v6
if: failure()
with:
name: ${{ matrix.name }} (cmake)
path: |
../build/CMakeFiles/CMakeOutput.log
../build/CMakeFiles/CMakeError.log
retention-days: 7

View File

@@ -0,0 +1,146 @@
name: Configure
on: [push, pull_request]
jobs:
ci-configure:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu GCC
os: ubuntu-latest
compiler: gcc
configure-args: --warn
# Test out of source builds
- name: Ubuntu GCC OSB
os: ubuntu-latest
compiler: gcc
configure-args: --warn
build-dir: ../build
src-dir: ../zlib
- name: Ubuntu GCC ARM SF
os: ubuntu-latest
compiler: arm-linux-gnueabi-gcc
configure-args: --warn
chost: arm-linux-gnueabi
packages: qemu-system qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
- name: Ubuntu GCC ARM HF
os: ubuntu-latest
compiler: arm-linux-gnueabihf-gcc
configure-args: --warn
chost: arm-linux-gnueabihf
packages: qemu-system qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
- name: Ubuntu GCC AARCH64
os: ubuntu-latest
compiler: aarch64-linux-gnu-gcc
configure-args: --warn
chost: aarch64-linux-gnu
packages: qemu-system qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
- name: Ubuntu GCC PPC
os: ubuntu-latest
compiler: powerpc-linux-gnu-gcc
configure-args: --warn --static
chost: powerpc-linux-gnu
packages: qemu-system qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
cflags: -static
ldflags: -static
- name: Ubuntu GCC PPC64
os: ubuntu-latest
compiler: powerpc64-linux-gnu-gcc
configure-args: --warn --static
chost: powerpc-linux-gnu
packages: qemu-system qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
cflags: -static
ldflags: -static
- name: Ubuntu GCC PPC64LE
os: ubuntu-latest
compiler: powerpc64le-linux-gnu-gcc
configure-args: --warn
chost: powerpc64le-linux-gnu
packages: qemu-system qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu
- name: Ubuntu GCC S390X
os: ubuntu-latest
compiler: s390x-linux-gnu-gcc
configure-args: --warn --static
chost: s390x-linux-gnu
packages: qemu-system qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
cflags: -static
ldflags: -static
- name: macOS GCC 13
os: macos-latest
compiler: gcc-13
configure-args: --warn
- name: macOS GCC 14
os: macos-latest
compiler: gcc-14
configure-args: --warn
- name: macOS GCC 15
os: macos-latest
compiler: gcc-15
configure-args: --warn
- name: macOS Clang
os: macos-latest
compiler: clang
configure-args: --warn
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install packages (Ubuntu)
if: runner.os == 'Linux' && matrix.packages
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.packages }}
- name: Generate project files
run: |
[ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }}
cd ${{ matrix.build-dir || '.' }}
${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }}
LDFLAGS: ${{ matrix.ldflags }}
CHOST: ${{ matrix.chost }}
- name: Compile source code
run: make -j2
working-directory: ${{ matrix.build-dir }}
- name: Run test cases
run: |
make test
# make cover
working-directory: ${{ matrix.build-dir }}
env:
QEMU_RUN: ${{ matrix.qemu-run }}
- name: Upload build errors
uses: actions/upload-artifact@v6
if: failure()
with:
name: ${{ matrix.name }} (configure)
path: |
${{ matrix.build-dir || '.' }}/configure.log
retention-days: 7

View File

@@ -0,0 +1,106 @@
name: contribs
on: [push, pull_request]
jobs:
ci-cmake:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu all contribs
os: ubuntu-latest
cmake-args: -DZLIB_BUILD_ADA=ON -DZLIB_BUILD_BLAST=ON -DZLIB_BUILD_IOSTREAM3=ON -DZLIB_BUILD_MINIZIP=ON -DZLIB_BUILD_PUFF=ON -DZLIB_WITH_INFBACK9=ON -DZLIB_WITH_CRC32VX=ON -DZLIB_WITH_GVMAT64=ON
src_dir: .
sudo: sudo
- name: Windows all contribs
os: windows-latest
cmake-args: -DZLIB_BUILD_BLAST=ON -DZLIB_BUILD_IOSTREAM3=ON -DZLIB_BUILD_MINIZIP=ON -DZLIB_BUILD_PUFF=ON -DZLIB_BUILD_TESTZLIB=ON -DZLIB_BUILD_ZLIB1_DLL=ON -DZLIB_WITH_INFBACK9=ON -DZLIB_WITH_CRC32VX=ON -DZLIB_WITH_GVMAT64=ON
src_dir: .
- name: Ubuntu ADA
os: ubuntu-latest
src_dir: contrib/ada
install_zlib: yes
sudo: sudo
- name: Ubuntu BLAST
os: ubuntu-latest
src_dir: contrib/blast
install_zlib: yes
sudo: sudo
- name: Windows BLAST
os: Windows-latest
src_dir: contrib/blast
install_zlib: yes
- name: Ubuntu IOSTREAM
os: ubuntu-latest
src_dir: contrib/iostream3
install_zlib: yes
sudo: sudo
- name: Windows IOSTREAM
os: Windows-latest
src_dir: contrib/iostream3
install_zlib: yes
- name: Ubuntu MINIZIP
os: ubuntu-latest
src_dir: contrib/minizip
install_zlib: yes
sudo: sudo
- name: Windows MINIZIP
os: Windows-latest
src_dir: contrib/minizip
install_zlib: yes
- name: Ubuntu PUFF
os: ubuntu-latest
src_dir: contrib/puff
install_zlib: yes
sudo: sudo
- name: Windows PUFF
os: Windows-latest
src_dir: contrib/puff
install_zlib: yes
- name: Windows testzlib
os: windows-latest
src_dir: contrib/testzlib
install_zlib: yes
- name: Windows zlib1-dll
os: windows-latest
src_dir: contrib/zlib1-dll
install_zlib: yes
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
if: runner.os == 'Linux'
run: |
sudo apt install gnat libbz2-dev
- name: Install zlib
if: ${{ matrix.install_zlib == 'yes' }}
run: |
cmake -S . -B ../build-zlib -DCMAKE_BUILD_TYPE=Release
cmake --build ../build-zlib --config Release
${{ matrix.sudo }} cmake --install ../build-zlib
- name: Generate project files
run: cmake -S ${{ matrix.src_dir }} -B ../build ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Release
- name: Compile source code
run: cmake --build ../build --config Release
- name: Run test cases
run: ctest -C Release --output-on-failure --max-width 120
working-directory: ../build

View File

@@ -0,0 +1,25 @@
name: OSS-Fuzz
on: [pull_request]
jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'zlib'
dry-run: false
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'zlib'
fuzz-seconds: 300
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v6
if: failure()
with:
name: artifacts
path: ./out/artifacts

View File

@@ -0,0 +1,92 @@
name: mingw/cygwin
on: [push, pull_request]
jobs:
MSys:
runs-on: ${{ matrix.os || 'windows-latest' }}
strategy:
fail-fast: false
matrix:
sys: [mingw32, mingw64, ucrt64, clang64, clangarm64]
include:
- sys: clangarm64
os: windows-11-arm
name: MSys - ${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: >-
make
pacboy: >-
toolchain:p
cmake:p
- name: Configure
if: matrix.sys != 'clang64'
run: |
cmake -G"Unix Makefiles" \
-S . \
-B build \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_BUILD_MINIZIP=ON \
-DMINIZIP_ENABLE_BZIP2=ON
- name: Configure clang64
if: matrix.sys == 'clang64'
run: |
CC=clang cmake -G"Unix Makefiles" \
-S . \
-B build \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_BUILD_MINIZIP=ON \
-DMINIZIP_ENABLE_BZIP2=ON
- name: Build
run: cmake --build build --config Release
- name: Run tests
run: ctest --output-on-failure --test-dir build -C Release
cygwin:
strategy:
fail-fast: false
runs-on: windows-latest
defaults:
run:
shell: C:\cygwin\bin\bash.exe --login -o igncr '{0}'
name: Cygwin
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: >-
cmake
cygwin-devel
gcc-core
gcc-g++
ninja
- name: Configure
run: |
cmake /cygdrive/d/a/zlib/zlib \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_BUILD_MINIZIP=ON \
-DMINIZIP_ENABLE_BZIP2=OFF \
-G Ninja
- name: Build
run: cmake --build build --config Release -v -j1
- name: Run tests
run: ctest --output-on-failure --test-dir build -C Release

View File

@@ -0,0 +1,160 @@
name: anyVM-OSes
on: [push, pull_request]
jobs:
dragonflybsd:
runs-on: ubuntu-latest
name: DragonflyBSD
steps:
- uses: actions/checkout@v6
- name: DragonflyBSD
uses: vmactions/dragonflybsd-vm@v1
with:
copyback: false
sync: scp
prepare: |
pkg install -y cmake gcc14 bzip2
run: |
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
cmake --build build/
ctest --test-dir build --output-on-failure
freebsd:
runs-on: ubuntu-latest
name: FreeBSD - ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: aarch64
- name: x86_64
steps:
- uses: actions/checkout@v6
- name: FreeBSD - ${{ matrix.name }}
uses: vmactions/freebsd-vm@v1
with:
arch: ${{ matrix.name }}
copyback: false
sync: scp
release: "15.0"
prepare: |
pkg install -y cmake gcc14 bzip2
run: |
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
cmake --build build/
ctest --test-dir build --output-on-failure -E .*summary
netbsd:
runs-on: ubuntu-latest
name: NetBSD - ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: aarch64
- name: x86_64
steps:
- uses: actions/checkout@v6
- name: NetBSD - ${{ matrix.name }}
uses: vmactions/netbsd-vm@v1
with:
copyback: false
sync: scp
prepare: |
export PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages"
export PKG_PATH="$PKG_PATH/$(uname -s)/$(uname -m)/$(uname -r|cut -f '1 2' -d.)/All"
/usr/sbin/pkg_add cmake
/usr/sbin/pkg_add bzip2
run: |
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
cmake --build build/
ctest --test-dir build --output-on-failure
omni-os:
runs-on: ubuntu-latest
name: OmniOS
steps:
- uses: actions/checkout@v6
- name: OmniOS
uses: vmactions/omnios-vm@v1
with:
copyback: false
sync: scp
prepare: |
pkg install cmake gcc14 make bzip2
run: |
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
cmake --build build/
ctest --test-dir build --output-on-failure
openbsd:
runs-on: ubuntu-latest
name: OpenBSD - ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: aarch64
- name: x86_64
- name: riscv64
steps:
- uses: actions/checkout@v6
- name: OpenBSD - ${{ matrix.name }}
uses: vmactions/openbsd-vm@v1
with:
arch: ${{ matrix.name }}
copyback: false
sync: scp
prepare: |
pkg_add cmake
bzip2
run: |
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
cmake --build build/
ctest --test-dir build
# openindiana:
# runs-on: ubuntu-latest
# name: OpenIndiana
# steps:
# - uses: actions/checkout@v6
# - name: OpenIndiana
# uses: vmactions/openindiana-vm@v0
# with:
# copyback: false
# sync: scp
# prepare: |
# pkg install cmake gcc-14 make bzip2
# run: |
# cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
# cmake --build build/
# ctest --test-dir build --output-on-failure
solaris:
runs-on: ubuntu-latest
name: Solaris
steps:
- uses: actions/checkout@v6
- name: Solaris
uses: vmactions/solaris-vm@v1
with:
copyback: false
sync: scp
release: "11.4-gcc"
prepare: |
pkgutil -U
pkgutil -y -i cmake bzip2
run: |
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
cmake --build build/
ctest --test-dir build --output-on-failure