add includes so that the file does not rely on the animal_minlegs.h #253
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: Compile source code | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- src/* | |
- dev/compile_src.sh | |
- .github/workflows/src.yml | |
jobs: | |
job1: | |
name: GCC on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master branch | |
uses: actions/checkout@v4 | |
- name: Install gcc | |
run: sudo apt-get install gcc | |
- name: Compile source code | |
run: ./dev/compile_src.sh | |
env: | |
CC: gcc | |
OS: linux | |
job2: | |
name: Clang on macOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout master branch | |
uses: actions/checkout@v4 | |
- name: Compile source code | |
run: ./dev/compile_src.sh | |
env: | |
CC: clang | |
OS: macos |