Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI build and test

on: [push, pull_request]

defaults:
run:
shell: bash

jobs:
build-linux:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- uses: actions/checkout@v7
- name: Install dependencies
run: sudo dnf install -y cmake gcc gcc-c++ git libstdc++-devel make ninja
- name: CMake configure
run: cmake -G Ninja -B bld -DUSE_LTO=OFF
- name: CMake build
run: cmake --build bld -j $(nproc)
- name: Setup Test suite dependencies
run: sudo dnf install -y emacs-nw libcxx libcxx-devel libcxxabi libcxxabi-devel mingw64-gcc mingw64-libstdc++ ucrt64-gcc ucrt64-libstdc++
- name: Configure Test suite using CMake
working-directory: ./tst
run: cmake -G Ninja -B bld -DUSE_LTO=OFF
- name: Build Test suite
working-directory: ./tst
run: cmake --build bld
- name: Test
working-directory: ./tst
run: cmake --build bld -t test
build-windows:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@v7
- name: CMake configure
run: cmake -G Ninja -B bld -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_CXX_SCAN_FOR_MODULES=OFF -DFMT_MODULE=OFF -DUSE_LTO=OFF
- name: CMake build
run: cmake --build bld -j $(nproc)
Loading