Skip to content

Commit

Permalink
Set up basic build and test CI in GitHub Actions #2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xg0nz0 committed Dec 31, 2023
1 parent 7a96e01 commit 5990449
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/act:1": {}
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/rust:1": {},
"ghcr.io/devcontainers-contrib/features/act:1": {},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}
},
"customizations": {
"vscode": {
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci

env:
CTEST_NO_TESTS_ACTION: error
HOMEBREW_NO_INSTALL_CLEANUP: 1

on:
push:
paths:
- "**.c"
- "**.cpp"
- "**.h"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci.yml"

jobs:
core:
strategy:
matrix:
os: [ubuntu-latest, debian-latest, macos-latest]
shared: [true, false]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/[email protected]
- name: Configure
uses: threeal/[email protected]
with:
generator: Ninja
c-compiler: clang
cxx-compiler: clang++
- name: Build
run: cmake --build build
- name: Unit Tests
run: build/iggy_cpp_test

0 comments on commit 5990449

Please sign in to comment.