Skip to content

Commit eef2766

Browse files
authored
Update GitHub Actions workflow for C/C++ build
1 parent 1520ead commit eef2766

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: install tools
17+
run: sudo apt-get install texinfo texi2html
18+
- name: configure
19+
run: ./configure
20+
- name: make
21+
run: make clean all threads cxx threadscxx
22+
- name: make tests
23+
run: make tests
24+
- name: make installdocs
25+
run: make installdocs
26+
- name: make distclean
27+
run: make distclean
28+
- name: configure in subdir
29+
run: mkdir x ; cd x ; ../configure --prefix /tmp
30+
- name: make in subdir
31+
run: cd x ; make clean all threads cxx threadscxx
32+
- name: run utility in subdir
33+
run: cd x ; ./dmalloc
34+
- name: run tests in subdir
35+
run: cd x ; make tests
36+
- name: make installdocs in subdir
37+
run: cd x ; make installdocs

0 commit comments

Comments
 (0)