Skip to content

Updated the CMakelists.txt. #82

Updated the CMakelists.txt.

Updated the CMakelists.txt. #82

Workflow file for this run

name: Linux
on:
push:
branches: main
jobs:
ubuntu_build:
runs-on: ubuntu-22.04
strategy:
matrix:
gcc-version: [ 12, 13 ] # kept it like this to allow for future additions in the build matrix
BUILD_TYPE: [ Release, Debug ]
name: Ubuntu 22.04 (GCC ${{ matrix.gcc-version }}) (${{ matrix.BUILD_TYPE}} Build)
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo apt-get update -q
sudo apt-get install -yq --no-install-recommends \
gcc-${{ matrix.gcc-version }} \
g++-${{ matrix.gcc-version }}
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ubuntu-20.04-gcc-${{ matrix.gcc-version }}
max-size: 50M
- name: Configure CMake
run: |
cmake -B${{ github.workspace }}/build \
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-G"Unix Makefiles"
env:
CC: gcc-${{ matrix.gcc-version }}
CXX: g++-${{ matrix.gcc-version }}
- name: Build
run: |
cmake --build ${{ github.workspace }}/build \
--config ${{ matrix.BUILD_TYPE }} \
-j 4
# - name: Run executable
# run: |
# cd build/Celerity
# ./Celerity