From b75600509352e957f0e09a72b4bf64cec7641c80 Mon Sep 17 00:00:00 2001 From: Matheo Coquet Date: Mon, 11 Mar 2024 16:06:40 +0100 Subject: [PATCH 1/2] config: add pre-commit config --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..6a1bd1c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: + - repo: local + hooks: + - id: tests_run + name: Run tests + entry: bash -c 'make tests_run' + language: system + pass_filenames: false From 09dbcc684d700b9485b19f8e74f4a77a1c354829 Mon Sep 17 00:00:00 2001 From: Matheo Coquet Date: Mon, 11 Mar 2024 16:15:35 +0100 Subject: [PATCH 2/2] docs: add documentation about installations and build --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 9f8c254..d82fd8f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,34 @@ # FMY-Arcade 🖲️ Retro Platform + +## Installation +### Cmake +``` +sudo apt install cmake +``` +More informations [here](https://cmake.org/download/). + +### Pre-Commit +First, install pre-commit package. +- On linux: +``` +pip install pre-commit +``` +- On macOS (Intel/AMD): +``` +brew install pre-commit +``` +Next, steup pre-commit at the root of the repository: +``` +pre-commit install +``` + +## Build project +Build the project +``` +make +``` +Clean the project +``` +make fclean +```