Skip to content

Commit 9576e7d

Browse files
authored
Create cmake.yml
Basic cmake use.
1 parent cd31e86 commit 9576e7d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: cmake CI
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
types: [opened, synchronize, reopened]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Install cmake
23+
run: |
24+
sudo apt-get -qq update
25+
sudo apt install build-essential cmake
26+
- name: Build libdwarf
27+
run: |
28+
mkdir builddir && cd builddir
29+
cmake ../CMakeLists.txt
30+
make
31+
-name Test libdwarf
32+
run: ctest -R self
33+

0 commit comments

Comments
 (0)