1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-01 06:30:52 +02:00
ModernCppStarter/.github/workflows/standalone.yml
2021-01-20 18:26:57 +01:00

33 lines
673 B
YAML

name: Standalone
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: '**/cpm_modules'
key: ${{ runner.os }}-cpm-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: configure
env:
CPM_SOURCE_CACHE: ${{ env.GITHUB_WORKSPACE }}/cpm_modules
run: cmake -Sstandalone -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build -j4
- name: run
run: ./build/Greeter