Skip to content

Commit

Permalink
add ci for c++ gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
fangshuai03 committed Jan 19, 2024
1 parent a9bf5fe commit f372146
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/c++-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: C++ CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake

- name: Build
run: cd ./c++/gtest_mini_project
run: cmake .. && make

- name: Test
run: cd ./c++/gtest_mini_project

0 comments on commit f372146

Please sign in to comment.