mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
added CPP compile action
This commit is contained in:
parent
79f53543b9
commit
59a6db23cd
27
.github/workflows/ccpp.yml
vendored
Normal file
27
.github/workflows/ccpp.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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:
|
||||
- uses: actions/checkout@master
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install requirements
|
||||
run: sudo apt -qq install ninja-buil
|
||||
- name: configure
|
||||
run: cmake -G Ninja -B ./build -S .
|
||||
- name: build
|
||||
run: cmake --build build
|
||||
|
Loading…
Reference in New Issue
Block a user