This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
fix errors #91
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check 42 norminette | |
on: | |
push: | |
pull_request: | |
jobs: | |
check_42_norm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install 42 norminette | |
run: | | |
sudo apt update | |
sudo apt install python3 -y | |
python3 -m pip install --upgrade pip setuptools | |
python3 -m pip install --upgrade norminette | |
- name: check for 42 norminette requirements | |
run: | | |
echo checking files: $(git ls-files) | |
norminette . | |
check_compile_error: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: check for compilation errors | |
run: | | |
sudo apt update | |
sudo apt install build-essential -y | |
echo checking files: $(git ls-files) | |
for f in $(find . -name \*.c); do gcc -I includes/ -Wall -Wextra -Werror -fsyntax-only $f; done | |