Skip to content

[no-ci] try sphinx and gh-pages #67

[no-ci] try sphinx and gh-pages

[no-ci] try sphinx and gh-pages #67

name: Build and run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
container:
name: Build Container
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
target: ci-base
push: true
tags: ghcr.io/${{ github.repository }}:ci-base
release:
name: RelWithDebInfo
runs-on: ubuntu-latest
needs: container
container:
image: ghcr.io/${{ github.repository }}:ci-base
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
run: cmake --build build --parallel
- name: Run tests (if available)
run: |
build/test/test_all