TheAlgorithms-C/.github/workflows/ccpp.yml

28 lines
484 B
YAML
Raw Normal View History

2020-04-08 10:07:29 +08:00
name: C/C++ CI
on: [push]
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
2020-04-08 10:12:54 +08:00
- uses: actions/checkout@master
2020-04-08 10:18:08 +08:00
with:
submodules: true
2020-04-08 10:07:29 +08:00
- name: build directory
2020-04-08 10:14:44 +08:00
run: mkdir build && cd build
2020-04-08 10:07:29 +08:00
- name: configure
run: cmake .
- name: build
run: cmake --build .