hfsfuse: ensure readlink result is NUL terminated #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches-ignore: | |
- netbsd-libhfs | |
pull_request: | |
env: | |
LOCAL_CFLAGS: -Werror | |
LIBHFS_CFLAGS: -Werror | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libfuse-dev | |
- name: Build | |
run: make | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
brew update | |
brew install --cask macfuse | |
- name: Build | |
run: make | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add MinGW to PATH | |
run: echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH | |
shell: bash | |
- name: Build | |
run: make | |
shell: bash | |
env: | |
CC: gcc | |
build-freebsd: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build in default configuration | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: freebsd | |
architecture: x86-64 | |
version: '13.2' | |
run: | | |
sudo pkg update | |
sudo pkg install -y gmake fusefs-libs | |
gmake | |
- name: Build with ports tree configuration | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: freebsd | |
architecture: x86-64 | |
version: '13.2' | |
run: | | |
sudo pkg install -y gmake fusefs-libs libublio utf8proc | |
gmake clean | |
gmake WITH_UBLIO=system WITH_UTF8PROC=system config all | |
build-openbsd: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: openbsd | |
architecture: x86-64 | |
version: '7.3' | |
run: | | |
sudo pkg_add gmake | |
gmake | |
build-netbsd: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: netbsd | |
architecture: x86-64 | |
version: '9.3' | |
run: | | |
sudo pkgin update | |
sudo pkgin -y install gmake fuse | |
gmake | |
conformance-checks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cc: [clang, gcc] | |
env: | |
CC: ${{ matrix.cc }} | |
defaults: | |
run: | |
shell: sh | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libfuse-dev libutf8proc-dev | |
- name: Build | |
run: make all clean | |
- name: Build with conformance flags | |
env: | |
LOCAL_CFLAGS: -std=c11 -D_POSIX_C_SOURCE=200809L -Werror | |
LIBHFS_CFLAGS: -std=c11 -D_POSIX_C_SOURCE=200809L -Werror | |
run: make all clean | |
- name: Build with system utf8proc | |
run: make all clean WITH_UTF8PROC=system | |
- name: Build without optional dependencies | |
run: make all clean WITH_UBLIO=none WITH_UTF8PROC=none | |
- name: Build with compatibility fallbacks | |
run: make all clean HAVE_BEXXTOH_ENDIAN_H=0 HAVE_VSYSLOG=0 HAVE_PREAD=0 |