Skip to content

Merge pull request #26 from wermos/dependabot/submodules/utilities/li… #61

Merge pull request #26 from wermos/dependabot/submodules/utilities/li…

Merge pull request #26 from wermos/dependabot/submodules/utilities/li… #61

Workflow file for this run

name: Linux
on:
push:
branches: main
jobs:
ubuntu_build:
runs-on: ubuntu-20.04
strategy:
matrix:
gcc-version: [ 11 ] #kept it like this to allow for future additions in the build matrix
BUILD_TYPE: [ Release, Debug ]
name: Ubuntu 20.04 (GCC ${{ matrix.gcc-version }}) (${{ matrix.BUILD_TYPE}} Build)
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
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 }} \
-- -j2
# - name: Run executable
# run: |
# cd build/Celerity
# ./Celerity