This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
Build Checker #4798
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: Build Checker | |
env: | |
BINARY0: ./corewar/corewar | |
BINARY1: ./asm/asm | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 * * * *' | |
workflow_dispatch: | |
jobs: | |
check_build: | |
runs-on: ubuntu-latest | |
container: epitechcontent/epitest-docker | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Run Build | |
run: make re | |
timeout-minutes: 2 | |
- name: Check BINARY0 Binary | |
run: | | |
if [ ! -f $BINARY0 ]; then | |
echo "$BINARY0 not found. Exiting with error." | |
exit 1 | |
fi | |
- name: Check BINARY1 Binary | |
run: | | |
if [ ! -f $BINARY1 ]; then | |
echo "$BINARY1 not found. Exiting with error." | |
exit 1 | |
fi |