Advanced calculator #133
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: advanced-calculator | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
advanced-calculator: | |
runs-on: ubuntu-latest | |
env: | |
path: homework/advanced-calculator/build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@master | |
- name: Create build directory | |
run: mkdir ${{ env.path }} | |
- name: Compile | |
working-directory: ${{ env.path }} | |
run: | | |
cmake .. | |
make | |
- name: Run tests | |
working-directory: ${{ env.path }} | |
run: ctest -V | |
formatting_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run clang-format style check | |
uses: coders-school/github-actions/clang-format-check@main | |
with: | |
check_path: 'homework/advanced-calculator' |