Create dependabot.yml (#6) #32
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: CMake | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install -y cmake make llvm-dev lld clang libclang-dev | |
- name: Checkout Enzyme | |
uses: actions/checkout@v3 | |
with: | |
repository: 'EnzymeAD/Enzyme' | |
path: 'enzyme' | |
- name: cmake | |
working-directory: enzyme | |
run: mkdir build && cd build && cmake ../enzyme -DCMAKE_BUILD_TYPE=Release | |
- name: make | |
working-directory: enzyme/build | |
run: sudo make -j `nproc` install | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: 'main' | |
- name: Configure | |
working-directory: ./main | |
run: mkdir build && cd build && cmake .. | |
- name: Build | |
working-directory: ./main/build | |
run: make | |