ci: switch to GitHub Actions.

This commit is contained in:
Tatsuhiko Kubo
2021-02-17 23:11:40 +09:00
parent b83e617aab
commit ebbde693a5
2 changed files with 30 additions and 18 deletions

30
.github/workflows/cpp.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: C++
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install scons and gtest
run: |
sudo apt-get install -y scons
sudo apt-get install -y cmake scons
wget https://github.com/google/googletest/archive/release-1.8.0.zip
unzip -q release-1.8.0.zip
cd googletest-release-1.8.0
cmake .
make
sudo make install
- name: Build examples
run: |
cd examples
scons
- name: Test
run: |
cd test
scons check