fix #2 #26
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: Linux | |
on: | |
push: | |
branches: | |
- fix#* | |
paths: | |
- "uvio/**" | |
- "tests/**" | |
# pull_request: | |
# branches: | |
# - main | |
# paths: | |
# - "uvio/**" | |
jobs: | |
build_linux: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
# - { compiler: gcc, version: 13, build_type: release, cxx: g++ } | |
# - { compiler: clang, version: 17, build_type: release, cxx: clang++ } | |
- { compiler: clang, version: 17, build_type: debug, cxx: clang++ } | |
container: | |
image: ${{ matrix.config.compiler == 'clang' && 'teeks99/clang-ubuntu' || matrix.config.compiler }}:${{ matrix.config.version }} | |
name: "${{ matrix.config.compiler }} ${{ matrix.config.version }} (C++20, ${{ matrix.config.build_type }})" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Setup | |
run: | | |
apt-get update | |
apt-get install -y curl git pkg-config | |
apt-get install -y libuv1-dev | |
- name: Setup Python | |
uses: actions/setup-python@main | |
with: | |
python-version: '3.12' | |
- name: Install Meson/Ninja | |
run: | | |
python3 -m pip install meson ninja | |
# - name: Install | |
# run: | | |
# CMAKE_VERSION="3.24.2" | |
# curl -sSL https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh -o install-cmake.sh | |
# chmod +x install-cmake.sh | |
# ./install-cmake.sh --prefix=/usr/local --skip-license | |
- name: Build | |
run: | | |
CXX=${{ matrix.config.cxx }} meson setup build -Dbuildtype=${{ matrix.config.build_type }} -Db_sanitize=address | |
meson compile -C build | |
# ./build/tests/gtests/all_gtests | |
./build/tests/test_coredump | |
- name: Install | |
run: | | |
meson install -C build |