Skip to content

Commit

Permalink
Add github actions with basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Pavelka committed Jul 14, 2023
1 parent e974406 commit ef52340
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build
on:
push:
jobs:
build-project:
runs-on: ubuntu-latest
strategy:
matrix:
build-tool: [Unix Makefiles, Ninja]
compiler: [g++, clang++]
steps:
- name: Checkout the repository
uses: actions/checkout@v3.5.3

- name: Configure the project
uses: threeal/cmake-action@v1.2.0
with:
build-dir: submodules/out
generator: ${{ matrix.build-tool }}
cxx-compiler: ${{ matrix.compiler }}

- name: Build the project
run: cmake --build build

- name: Test the project
run: ctest --test-dir build
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Check commits one-by-one as they:
1. start with not using CMake at all and building the thing using plain g++,
1. use the simplest CMake
1. Hide the growing complexity to Makefile
1. Adds configure, build and test to GitHub pipeline.

### TODO

Expand Down

0 comments on commit ef52340

Please sign in to comment.