Update zlib #217
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: libarp | |
on: [push, pull_request] | |
jobs: | |
Build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-12] | |
compiler: [gcc, clang, msvc] | |
configuration: [Release, Debug] | |
exclude: | |
- os: windows-2022 | |
compiler: gcc | |
- os: windows-2022 | |
compiler: clang | |
- os: ubuntu-22.04 | |
compiler: msvc | |
- os: macos-12 | |
compiler: msvc | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set env vars for current matrix configuration | |
shell: pwsh | |
run: | | |
$os_name = "${{ runner.os }}".ToLower() | |
echo "OS_NAME=$os_name" >> "$env:GITHUB_ENV" | |
$config_name = "${{ matrix.configuration }}".ToLower() | |
echo "CONFIG_NAME=$config_name" >> $env:GITHUB_ENV | |
- name: Set env vars for GCC | |
shell: pwsh | |
run: | | |
$suffix = if ("$env:OS_NAME" -eq "macos") { "-12" } else { "" } | |
echo "CC=gcc$suffix" >> "$env:GITHUB_ENV" | |
echo "CXX=g++$suffix" >> "$env:GITHUB_ENV" | |
if: matrix.compiler == 'gcc' | |
- name: Set env vars for Clang | |
run: | | |
echo "CC=clang" >> "$GITHUB_ENV" | |
echo "CXX=clang++" >> "$GITHUB_ENV" | |
if: matrix.compiler == 'clang' | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{secrets.ACCESS_TOKEN}} | |
submodules: recursive | |
- name: Configure | |
shell: pwsh | |
run: | | |
mkdir build | |
cd build | |
if ("$env:OS_NAME" -eq "windows") { | |
cmake -DCMAKE_SYSTEM_VERSION=10.0.19041.0 -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} .. | |
} else { | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} .. | |
} | |
- name: Build | |
run: cmake --build build --config ${{ matrix.configuration }} --parallel 2 | |
- name: Archive | |
uses: actions/upload-artifact@v1 | |
with: | |
name: libarp_dist-${{ env.OS_NAME }}-${{ matrix.compiler }}-${{ env.CONFIG_NAME }} | |
path: build/dist/ |