Skip to content

Commit fcf5f79

Browse files
authored
Switch from Travis to Github actions (lsh123#301)
1 parent 21bbcb0 commit fcf5f79

File tree

2 files changed

+45
-49
lines changed

2 files changed

+45
-49
lines changed

.github/workflows/make-check.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest]
16+
include:
17+
- os: ubuntu-latest
18+
BUILD_TOOLS_INSTALL: sudo apt install automake autoconf libtool libtool-bin libltdl-dev libltdl7
19+
LIBXML2_INSTALL: sudo apt install libxml2 libxml2-dev libxslt1.1 libxslt1-dev
20+
CRYPTO_LIBS_INSTALL: sudo apt install libssl1.0.0 libssl-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libnss3-tools libgcrypt20 libgcrypt20-dev libgnutls28-dev
21+
- os: macos-latest
22+
BUILD_TOOLS_INSTALL: brew install automake autoconf libtool
23+
LIBXML2_INSTALL: brew install libxml2 libxslt
24+
CRYPTO_LIBS_INSTALL: brew install openssl libgcrypt gnutls
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: install build tools
29+
run: ${{matrix.BUILD_TOOLS_INSTALL}}
30+
- name: install libxml2/libxslt
31+
run: ${{matrix.LIBXML2_INSTALL}}
32+
- name: install crypto libs
33+
run: ${{matrix.CRYPTO_LIBS_INSTALL}}
34+
- name: mkdir build
35+
run: mkdir build
36+
- name: configure
37+
working-directory: build
38+
run: ../autogen.sh --enable-werror
39+
- name: make
40+
working-directory: build
41+
run: make
42+
- name: make check
43+
working-directory: build
44+
run: make check
45+

.travis.yml

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

0 commit comments

Comments
 (0)