Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: C/C++ CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.5.0
- name: Install and build dependencies
run: |
pip install --user conan
make download
make conan
- name: Build
run: make build
- name: Test
run: make test
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ info: ## Print the project's name, version, copyright notice and author
##@ Setup

download: ## Download dependencies, needs to be run only once
$(shell cd /tmp ; \
git clone "https://github.com/agagniere/Libft.git" ;\
conan export Libft ;\
( \
cd /tmp ; \
git clone "https://github.com/agagniere/Libft.git" ; \
conan export Libft ; \
conan export Libft/test/framework \
)

Expand Down