-
Notifications
You must be signed in to change notification settings - Fork 0
126 lines (112 loc) · 3.39 KB
/
Copy pathmain.yml
File metadata and controls
126 lines (112 loc) · 3.39 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: Build tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
basic-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: make
run: make CICD=1
- name: make clean
run: make clean
- name: make fclean
run: make fclean
- name: make re
run: make CICD=1 re
- name: check binary
run: ls -l ./mncc
- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
cs-build:
needs: [basic-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Copy Dockerfile inside root
run : cp ./.github/Dockerfile ./Dockerfile
- name: Build coding-style tests
run: docker build . -t cs-test --file Dockerfile --tag my-image-name:$(date +%s)
- name: Run basic command
run : docker run cs-test:latest
- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
coverage-build:
needs: [basic-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Copy Dockerfile inside root
run : cp ./.github/Dockerfile2 ./Dockerfile
- name: Build coverage-style tests
run: docker build . -t coverage-test --file Dockerfile --tag my-image-name:$(date +%s)
- name: Run basic command
run : docker run coverage-test:latest
- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
valgrind-build:
needs: [basic-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: update apt
run : sudo apt-get update
- name: setup valgrind
run: sudo apt-get install -y valgrind
- name: make
run: make CICD=1 DEBUG=1
- name: check file
run: ls -l ./mncc
- name: run valgrind
run: valgrind --leak-check=full --show-leak-kinds=all ./mncc ./.github/test.c
- name: clean
run: make fclean
- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
scan-build-test:
needs: [basic-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Copy Dockerfile inside root
run : cp ./.github/Dockerfile3 ./Dockerfile
- name: Build scan-build tests
run: docker build . -t cs-test --file Dockerfile --tag my-image-name:$(date +%s)
- name: Run scan-build tests
run : docker run cs-test:latest
- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
assembler-build-test:
needs: [basic-build, cs-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Copy Dockerfile inside root
run : cp ./.github/Dockerfile4 ./Dockerfile
- name: Build scan-build tests
run: docker build . -t asm-test --file Dockerfile --tag my-image-name:$(date +%s)
- name: Run scan-build tests
run : docker run asm-test:latest
- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}