Skip to content

Fix CI badge in README #18

Fix CI badge in README

Fix CI badge in README #18

Workflow file for this run

name: Build
on:
push:
branches:
- '*'
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-20.04
env:
CCACHE_MAXSIZE: 400M
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPRESS: 1
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: ./.github/workflows/deps/linux.sh
- name: Retrieve cache
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-ccache-${{ github.sha }}
restore-keys: ${{ runner.os }}-ccache-
- name: Configure build
run: |
mkdir build
cd build
cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_BUILD_TYPE=Debug \
-G Ninja \
..
- name: Build
run: |
cd build
cmake --build .
ccache -s