doc: updated README with new functionality #17
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: GitHash | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# Do not stop all jobs if a single job fails. | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, Windows-2019, macos-11] | |
build-type: ["Debug", "Release"] | |
steps: | |
- name: Checkout repository. | |
uses: actions/checkout@v4 | |
- name: Create build folder | |
run: | | |
mkdir ${{ runner.workspace }}/GitHash/exampleProject/build | |
- name: Run CMake | |
working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build | |
run: | | |
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | |
- name: Build | |
working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build | |
run: | | |
cmake --build . --config ${{ matrix.build-type }} --verbose | |
- name: Run test | |
working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build | |
run: | | |
ctest -C ${{ matrix.build-type }} -V |