Skip to content

Update fast_any

Update fast_any #695

name: Build & Test
on:
push:
branches: [ master ]
schedule:
- cron: "0 0 * * *"
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-20.04, windows-2022]
steps:
- if: matrix.os == 'windows-2022'
name: Install Cppcheck, OpenCppCoverage, and wkhtmltopdf (Windows)
run: |
choco install -y --ignore-package-exit-codes cppcheck opencppcoverage wkhtmltopdf
echo "C:\Program Files\Cppcheck" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\Program Files\OpenCppCoverage" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\Program Files\wkhtmltopdf" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- if: matrix.os == 'windows-2022'
name: Configure MSVC (Windows)
uses: ilammy/msvc-dev-cmd@v1
- name: Configure Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Meson and Ninja
run: |
pip3 install --upgrade meson ninja
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build - Release
run: |
meson setup --buildtype=release builddir
meson compile -C builddir
- name: Test - Release
run: |
meson test -vC builddir
- if: matrix.os == 'windows-2022'
name: Release (Windows)
uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
tag: latest-win
name: Lastest (Windows)
artifacts: builddir/libDSPatch.a
artifactContentType: application/octet-stream
commit: ${{ github.sha }}
- if: matrix.os == 'macos-12'
name: Release (MacOS)
uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
tag: latest-mac
name: Lastest (MacOS)
artifacts: builddir/libDSPatch.a
artifactContentType: application/octet-stream
commit: ${{ github.sha }}
- if: matrix.os == 'ubuntu-20.04'
name: Release (Linux)
uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
tag: latest-linux
name: Lastest (Linux)
artifacts: builddir/libDSPatch.a
artifactContentType: application/octet-stream
commit: ${{ github.sha }}
- if: matrix.os == 'windows-2022'
name: Build - Debug (Windows)
run: |
meson setup --buildtype=debug --wipe builddir
meson compile -C builddir
- if: matrix.os == 'windows-2022'
name: Test - Debug (Windows)
run: |
meson test -vC builddir
meson compile ./codecoverage -C builddir
$files = (Get-ChildItem -R .\builddir\coverage\*.html)
[array]::Reverse($files)
wkhtmltopdf --enable-local-file-access --disable-external-links --header-center [title] $files coverage.pdf
- if: matrix.os == 'windows-2022'
name: Upload Coverage Report (Windows)
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.pdf