Skip to content

fix : all documentation and readme in order to correspond to our actu… #69

fix : all documentation and readme in order to correspond to our actu…

fix : all documentation and readme in order to correspond to our actu… #69

Workflow file for this run

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 }}