Skip to content

Commit

Permalink
Actions (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Macr0Nerd authored Aug 15, 2022
1 parent 99e3bd2 commit 3196268
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CMake

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on: push

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand All @@ -15,15 +11,26 @@ jobs:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3

- name: Install gcc-10
run: |
sudo apt update
sudo apt install gcc-10 g++-10
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
env:
CC: gcc-10
CXX: g++-10

- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit 3196268

Please sign in to comment.