Skip to content

refactor: use std::unordered_map instead of bespoke utpHashTable #38

refactor: use std::unordered_map instead of bespoke utpHashTable

refactor: use std::unordered_map instead of bespoke utpHashTable #38

Workflow file for this run

name: CI
on:
push:
branches:
- "*-transmission"
pull_request:
branches:
- "*-transmission"
jobs:
build_cmake:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
os: [linux, windows, macos]
build_type: [Debug, RelWithDebInfo]
arch: [x86, x64]
cmake: [minimal, latest]
exclude:
- os: linux
arch: x86
- os: windows
cmake: minimal
- os: macos
arch: x86
- os: macos
cmake: minimal
include:
- cmake: minimal
cmake_url_part: v3.12/cmake-3.12.4
- cmake: latest
cmake_url_part: v3.26/cmake-3.26.4
- os: linux
runner: ubuntu-latest
- os: windows
runner: windows-latest
- os: windows
arch: x86
cmake_args: -A Win32
- os: windows
arch: x64
cmake_args: -A x64
- os: macos
runner: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies (linux)
if: matrix.os == 'linux'
run: |
wget --no-check-certificate https://cmake.org/files/${{ matrix.cmake_url_part }}-Linux-x86_64.tar.gz -O /tmp/cmake.tar.gz ||
wget --no-check-certificate https://cmake.org/files/${{ matrix.cmake_url_part }}-linux-x86_64.tar.gz -O /tmp/cmake.tar.gz
sudo tar xf /tmp/cmake.tar.gz -C /usr/local --strip-components 1
- name: CMake version
run: cmake --version
- name: Configure
run: cmake -E make_directory _build && cmake -E chdir _build cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.cmake_args }}
- name: Build
run: cmake --build _build --config ${{ matrix.build_type }}
- name: Test
run: cmake -E chdir _build ctest --build-config ${{ matrix.build_type }} --output-on-failure