don't use strlcat #3085
Workflow file for this run
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: CI build | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ main ] | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.container }} | |
env: | |
common_ubuntu_deps: curl doxygen libssl-dev libsystemd-dev pkg-config zlib1g-dev zip | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: macOS-11 | |
name: macOS x86_64 | |
arch: x86_64 | |
toolchain: default.cmake | |
- os: macOS-11 | |
name: macOS arm64 | |
arch: arm64 | |
toolchain: macOS-arm64.cmake | |
- os: windows-latest | |
name: Windows x86_64 | |
arch: x86_64 | |
- os: ubuntu-20.04 | |
container: ubuntu:18.04 | |
name: Linux x86_64 | |
install: $common_ubuntu_deps build-essential | |
arch: x86_64 | |
- os: ubuntu-20.04 | |
container: ubuntu:18.04 | |
name: Linux arm | |
install: $common_ubuntu_deps crossbuild-essential-armhf | |
toolchain: Linux-arm.cmake | |
cmake_opts: -DCMAKE_BUILD_TYPE=Release | |
arch: arm | |
- os: ubuntu-20.04 | |
container: ubuntu:18.04 | |
name: Linux arm64 | |
install: $common_ubuntu_deps crossbuild-essential-arm64 | |
toolchain: Linux-arm64.cmake | |
cmake_opts: -DCMAKE_BUILD_TYPE=Release | |
arch: arm64 | |
steps: | |
- name: install tools | |
if: ${{ matrix.install != null }} | |
run: | | |
apt -y update | |
apt -y install ${{ matrix.install }} | |
- name: install contemporary git | |
if: ${{ matrix.container != null }} | |
run: | | |
apt -y update | |
apt -y install software-properties-common | |
add-apt-repository -y ppa:git-core/ppa | |
apt -y update | |
apt -y install git | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
git --version | |
- name: install contemporary cmake | |
if: ${{ matrix.container != null }} | |
uses: lukka/get-cmake@latest | |
- name: checkout workspace | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: make build dir | |
run: cmake -E make_directory ./build | |
- name: configure cmake | |
env: | |
TOOLCHAIN: ${{ matrix.toolchain && format('./toolchains/{0}', matrix.toolchain) || '' }} | |
run: cmake ${{matrix.cmake_opts}} -DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN}" -S . -B ./build | |
- name: build ziti-edge-tunnel bundle target | |
run: cmake --build ./build --target bundle --verbose | |
- name: list bundle artifacts | |
run: ls -R | |
working-directory: ./build/bundle/ | |
- name: list program artifacts | |
run: ls -R | |
working-directory: ./build/programs/ziti-edge-tunnel/ | |
- name: upload bundle artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ runner.os }}-${{ matrix.arch }} | |
path: | | |
./build/bundle/ziti-edge-tunnel-*.zip | |
if-no-files-found: error |