meson #333
This file contains hidden or 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
| # | |
| # meson.yml | |
| # RVO2 Library | |
| # | |
| # SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # | |
| # Please send all bug reports to <geom@cs.unc.edu>. | |
| # | |
| # The authors may be contacted via: | |
| # | |
| # Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha | |
| # Dept. of Computer Science | |
| # 201 S. Columbia St. | |
| # Frederick P. Brooks, Jr. Computer Science Bldg. | |
| # Chapel Hill, N.C. 27599-3175 | |
| # United States of America | |
| # | |
| # <https://gamma.cs.unc.edu/RVO2/> | |
| # | |
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| --- | |
| name: meson | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '30 5 * * *' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| meson-almalinux: | |
| name: almalinux amd64 | |
| runs-on: ubuntu-latest | |
| container: almalinux:10 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh) | |
| dnf install -q -y \ | |
| ca-certificates \ | |
| dnf-plugins-core \ | |
| gcc-c++ \ | |
| git \ | |
| glibc-langpack-en \ | |
| meson \ | |
| ninja-build \ | |
| pkgconf | |
| dnf config-manager --set-enabled crb | |
| dnf clean all | |
| rm -rf /var/cache/yum | |
| shell: bash | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: bash | |
| meson-alpine: | |
| name: alpine linux amd64 | |
| runs-on: ubuntu-latest | |
| container: alpine:3 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| apk add -q --no-cache \ | |
| ca-certificates \ | |
| g++ \ | |
| git \ | |
| meson \ | |
| ninja \ | |
| pkgconf | |
| shell: sh | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: sh | |
| meson-arch: | |
| name: arch linux amd64 | |
| runs-on: ubuntu-latest | |
| container: archlinux:latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| pacman --needed --noconfirm --noprogressbar -Sy \ | |
| ca-certificates \ | |
| gcc \ | |
| git \ | |
| meson \ | |
| ninja \ | |
| pkgconf | |
| rm -rf \ | |
| /var/cache/pacman/pkg/* \ | |
| /var/lib/pacman/sync/* | |
| shell: bash | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: bash | |
| meson-fedora: | |
| name: fedora linux amd64 | |
| runs-on: ubuntu-latest | |
| container: fedora:44 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh) | |
| dnf install -q -y \ | |
| ca-certificates \ | |
| gcc-c++ \ | |
| git \ | |
| glibc-langpack-en \ | |
| meson \ | |
| ninja-build \ | |
| pkgconf | |
| dnf clean all | |
| rm -rf /var/cache/yum | |
| shell: bash | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: bash | |
| meson-macos: | |
| name: macos arm64 | |
| runs-on: macos-26 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: cache homebrew | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/Library/Caches/Homebrew/downloads | |
| key: | | |
| ${{ runner.os }}-${{ runner.arch }}-brew-${{ hashFiles('Brewfile') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-brew- | |
| - name: setup | |
| run: | | |
| brew update -q || (sleep 15; brew update -q) | |
| brew bundle install -q | |
| brew cleanup -q -s | |
| env: | |
| HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| HOMEBREW_NO_ANALYTICS: 1 | |
| HOMEBREW_NO_AUTO_UPDATE: 1 | |
| HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
| shell: zsh -efuo pipefail {0} | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=disabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: zsh -efuo pipefail {0} | |
| meson-macos-x86_64: | |
| name: macos x86_64 | |
| runs-on: macos-26-intel | |
| timeout-minutes: 30 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: cache homebrew | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/Library/Caches/Homebrew/downloads | |
| key: | | |
| ${{ runner.os }}-${{ runner.arch }}-brew-${{ hashFiles('Brewfile') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-brew- | |
| - name: setup | |
| run: | | |
| brew update -q || (sleep 15; brew update -q) | |
| brew bundle install -q | |
| brew cleanup -q -s | |
| env: | |
| HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| HOMEBREW_NO_ANALYTICS: 1 | |
| HOMEBREW_NO_AUTO_UPDATE: 1 | |
| HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
| shell: zsh -efuo pipefail {0} | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=disabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: zsh -efuo pipefail {0} | |
| meson-opensuse: | |
| name: opensuse leap amd64 | |
| runs-on: ubuntu-latest | |
| container: opensuse/leap:16.0 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| zypper -n -q ref || (sleep 15; zypper -n -q ref) | |
| zypper -n -q in --no-recommends \ | |
| ca-certificates \ | |
| gcc-c++ \ | |
| git \ | |
| meson \ | |
| ninja \ | |
| pkgconf | |
| zypper -n -q cc -a | |
| shell: bash | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: bash | |
| meson-ubuntu: | |
| name: ubuntu amd64 | |
| runs-on: ubuntu-latest | |
| container: ubuntu:26.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| apt-get -qq -o APT::Acquire::Retries=4 update \ | |
| || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) | |
| apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ | |
| --no-install-recommends install \ | |
| ca-certificates \ | |
| g++ \ | |
| git \ | |
| meson \ | |
| ninja-build \ | |
| pkgconf | |
| apt-get -qq -o Dpkg::Use-Pty=0 autoremove | |
| rm -rf /var/lib/apt/lists/* | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| shell: bash | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: bash | |
| meson-ubuntu-arm64: | |
| name: ubuntu arm64 | |
| runs-on: ubuntu-24.04-arm | |
| container: ubuntu:26.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: setup | |
| run: | | |
| apt-get -qq -o APT::Acquire::Retries=4 update \ | |
| || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) | |
| apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ | |
| --no-install-recommends install \ | |
| ca-certificates \ | |
| g++ \ | |
| git \ | |
| meson \ | |
| ninja-build \ | |
| pkgconf | |
| apt-get -qq -o Dpkg::Use-Pty=0 autoremove | |
| rm -rf /var/lib/apt/lists/* | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| shell: bash | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup \ | |
| --prefix "$(pwd)/_build/install" \ | |
| -Db_lto=true \ | |
| -Dopenmp=enabled \ | |
| -Dwerror=true \ | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "$(pwd)" | |
| meson dist --no-tests -C _build | |
| shell: bash | |
| meson-windows: | |
| name: windows x64 | |
| runs-on: windows-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~\AppData\Local\Microsoft\WinGet\Links | |
| ~\AppData\Local\Microsoft\WinGet\SourceData | |
| key: | | |
| ${{ runner.os }}-${{ runner.arch }}-winget-${{ hashFiles('.github/workflows/*.yml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-winget- | |
| - name: setup | |
| run: | | |
| Install-Module -Force -Name Microsoft.WinGet.Client | |
| Repair-WinGetPackageManager -Force -Latest | |
| $package = Get-WinGetPackage -Id Git.Git ` | |
| -MatchOption Equals -ErrorAction SilentlyContinue | |
| if (-not $package) { | |
| Install-WinGetPackage -Id Git.Git ` | |
| -MatchOption Equals -Mode Silent | |
| } elseif ($package.IsUpdateAvailable) { | |
| Update-WinGetPackage -Id Git.Git ` | |
| -MatchOption Equals -Mode Silent | |
| } | |
| $package = Get-WinGetPackage -Id mesonbuild.meson ` | |
| -MatchOption Equals -ErrorAction SilentlyContinue | |
| if (-not $package) { | |
| Install-WinGetPackage -Id mesonbuild.meson ` | |
| -MatchOption Equals -Mode Silent | |
| } elseif ($package.IsUpdateAvailable) { | |
| Update-WinGetPackage -Id mesonbuild.meson ` | |
| -MatchOption Equals -Mode Silent | |
| } | |
| $package = Get-WinGetPackage -Id Ninja-build.Ninja ` | |
| -MatchOption Equals -ErrorAction SilentlyContinue | |
| if (-not $package) { | |
| Install-WinGetPackage -Id Ninja-build.Ninja ` | |
| -MatchOption Equals -Mode Silent | |
| } elseif ($package.IsUpdateAvailable) { | |
| Update-WinGetPackage -Id Ninja-build.Ninja ` | |
| -MatchOption Equals -Mode Silent | |
| } | |
| Add-Content $env:GITHUB_PATH ( | |
| [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + ` | |
| [System.Environment]::GetEnvironmentVariable("Path", "User")) | |
| shell: pwsh | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup ` | |
| --prefix "${PWD}/_build/install" ` | |
| -Db_lto=true ` | |
| -Ddefault_library=static ` | |
| -Dopenmp=disabled ` | |
| -Dwerror=true ` | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "${PWD}" | |
| meson dist --no-tests -C _build | |
| shell: pwsh | |
| meson-windows-arm64: | |
| name: windows arm64 | |
| runs-on: windows-11-arm | |
| timeout-minutes: 30 | |
| steps: | |
| - name: cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~\AppData\Local\Microsoft\WinGet\Links | |
| ~\AppData\Local\Microsoft\WinGet\SourceData | |
| key: | | |
| ${{ runner.os }}-${{ runner.arch }}-winget-${{ hashFiles('.github/workflows/*.yml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-winget- | |
| - name: setup | |
| run: | | |
| Install-Module -Force -Name Microsoft.WinGet.Client | |
| Repair-WinGetPackageManager -Force -Latest | |
| $package = Get-WinGetPackage -Id Git.Git ` | |
| -MatchOption Equals -ErrorAction SilentlyContinue | |
| if (-not $package) { | |
| Install-WinGetPackage -Id Git.Git ` | |
| -MatchOption Equals -Mode Silent | |
| } elseif ($package.IsUpdateAvailable) { | |
| Update-WinGetPackage -Id Git.Git ` | |
| -MatchOption Equals -Mode Silent | |
| } | |
| $package = Get-WinGetPackage -Id mesonbuild.meson ` | |
| -MatchOption Equals -ErrorAction SilentlyContinue | |
| if (-not $package) { | |
| Install-WinGetPackage -Id mesonbuild.meson ` | |
| -MatchOption Equals -Mode Silent | |
| } elseif ($package.IsUpdateAvailable) { | |
| Update-WinGetPackage -Id mesonbuild.meson ` | |
| -MatchOption Equals -Mode Silent | |
| } | |
| $package = Get-WinGetPackage -Id Ninja-build.Ninja ` | |
| -MatchOption Equals -ErrorAction SilentlyContinue | |
| if (-not $package) { | |
| Install-WinGetPackage -Id Ninja-build.Ninja ` | |
| -MatchOption Equals -Mode Silent | |
| } elseif ($package.IsUpdateAvailable) { | |
| Update-WinGetPackage -Id Ninja-build.Ninja ` | |
| -MatchOption Equals -Mode Silent | |
| } | |
| Add-Content $env:GITHUB_PATH ( | |
| [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + ` | |
| [System.Environment]::GetEnvironmentVariable("Path", "User")) | |
| shell: pwsh | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - name: build test package | |
| run: | | |
| meson setup ` | |
| --prefix "${PWD}/_build/install" ` | |
| -Db_lto=true ` | |
| -Ddefault_library=static ` | |
| -Dopenmp=disabled ` | |
| -Dwerror=true ` | |
| _build | |
| ninja -C _build | |
| meson test --print-errorlogs -C _build | |
| meson install -C _build | |
| git config --global --add safe.directory "${PWD}" | |
| meson dist --no-tests -C _build | |
| shell: pwsh |