Skip to content

Commit c6667ec

Browse files
committed
Replace CircleCI with GitHub Actions
1 parent a5c9ce2 commit c6667ec

2 files changed

Lines changed: 39 additions & 45 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
gtest:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y cmake libgtest-dev
19+
cd /usr/src/gtest
20+
sudo cmake CMakeLists.txt
21+
sudo make
22+
sudo cp /usr/src/gtest/lib/*.a /usr/lib
23+
24+
- name: Build tests
25+
run: make gtests
26+
27+
- name: Run tests
28+
run: ./GTests --gtest_filter=*
29+
30+
samples:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Build sample
36+
run: make sample
37+
38+
- name: Run sample
39+
run: ./Sample

0 commit comments

Comments
 (0)