-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.34 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
name: NORM AND FLAGS CHECKS
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
# check-norm:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: 3.12
# - name: Install dependencies
# run: |
# pip install setuptools norminette
# - name: Run norminette checks
# run: |
# norminette
make-with-flags:
runs-on: ubuntu-latest
# needs: check-norm
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: install docker-compose
run: |
sudo apt-get update
sudo apt-get install -y make gcc
- name: Create Makefile for testing
run: |
echo -e 'SRCS= $(shell find . -type f -name "*.c")\nINCLUDES= -Iinclude\nOBJS= $(SRCS:.c=.o)\nDEPS= $(SRCS:.c=.d)\nCC= cc\nCFLAGS= -Wall -Wextra -Werror\nDEPSFLAGS= -MMD -MP\nNAME= uniq_name_][\nall: $(NAME)\n$(NAME): $(OBJS)\n\t$(CC) $(OBJS) -o $(NAME)\n%.o: %.c\n\t$(CC) $(CFLAGS) $(DEPSFLAGS) $(INCLUDES) -c $< -o $@\n-include $(DEPS)' > Makefile
- name: Run Services
run: |
make