Skip to content

BUG: use size_t for holding the size of a directory, otherwise we ove… #128

BUG: use size_t for holding the size of a directory, otherwise we ove…

BUG: use size_t for holding the size of a directory, otherwise we ove… #128

Workflow file for this run

name: build targets
on: [push,pull_request]
jobs:
build:
if: github.repository == 'QW-Group/mvdsv'
runs-on: ${{ matrix.base-image }}
strategy:
fail-fast: false
matrix:
target: [linux-amd64, linux-i686, linux-armhf, linux-aarch64, windows-x64, windows-x86]
include:
- target: linux-amd64
os: linux
arch: amd64
base-image: ubuntu-latest
build-image: amd64/ubuntu:latest
ext: ""
- target: linux-i686
os: linux
arch: i686
base-image: ubuntu-latest
build-image: i386/ubuntu:latest
ext: ""
- target: linux-armhf
os: linux
arch: armhf
base-image: ubuntu-latest
build-image: arm32v7/ubuntu:latest
ext: ""
- target: linux-aarch64
os: linux
arch: aarch64
base-image: ubuntu-latest
build-image: arm64v8/ubuntu:latest
ext: ""
- target: windows-x64
os: windows
arch: x64
base-image: ubuntu-latest
ext: ".exe"
- target: windows-x86
os: windows
arch: x86
base-image: ubuntu-latest
ext: ".exe"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Prepare Build Environemnt
shell: bash
run: |
if ${{ matrix.os == 'linux' }}; then
sudo apt-get update
sudo apt-get -y install qemu-system-arm qemu-user-static
else
sudo apt-get update
sudo apt-get -y install build-essential cmake gcc-i686-linux-gnu
sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
sudo apt-get -y install gcc-mingw-w64-x86-64 gcc-mingw-w64-i686
fi
- name: Build
shell: bash
run: |
if ${{ matrix.os == 'linux' }}; then
docker pull ${{ matrix.build-image }}
docker run --net=host --rm --device /dev/fuse -v $PWD:/mvdsv ${{ matrix.build-image }} bash -c -e 'export ARCH=$(dpkg --print-architecture);export DEBIAN_FRONTEND=noninteractive;mkdir -p /etc/apt/apt.conf.d;echo "APT::Install-Recommends "0"; APT::AutoRemove::RecommendsImportant "false";" >> /etc/apt/apt.conf.d/01lean && apt-get -qqy update && apt-get -qqy dist-upgrade && apt-get -qqy install cmake build-essential libcurl4-openssl-dev && ln -sf "$(which make)" /usr/bin/gmake && cd /mvdsv && ./build_cmake.sh ${{ matrix.target }} && chown -R '$(id -u ${USER})':'$(id -g ${USER})' /mvdsv/build/${{ matrix.target }}||exit 3'
else
./build_cmake.sh ${{ matrix.target }}
fi