Skip to content

Update GitHub CI workflow actions (#13) #81

Update GitHub CI workflow actions (#13)

Update GitHub CI workflow actions (#13) #81

Workflow file for this run

---
name: Prepare, build and run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
working-directory: ./build
run: |
cmake ..
cmake --build .
- name: Run tests
working-directory: ./build/test
run: ./cpp_katas_test --output=color
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
working-directory: ./build
run: |
cmake ..
cmake --build .
- name: Run tests
working-directory: ./build/test
run: ./cpp_katas_test --output=color
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install needed software
run: |
choco install ninja
- name: Build
working-directory: ./build
run: |
cmake -G "Ninja" ..
cmake --build .
- name: Run tests
working-directory: ./build/test
run: .\cpp_katas_test.exe --output=color