Skip to content

Commit

Permalink
Use GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Oct 16, 2023
1 parent 8c3edbc commit d07115a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: C/C++ CI

on:
push:
branches:
- master
- releases/*

pull_request:
branches:
- master

jobs:
ubuntu:
name: Ubuntu native build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install -y --no-install-recommends autoconf automake >
libtool g++ gettext make libedit-dev libpcre2-dev libssl-dev zlib1g-dev

- name: Run tests
run: ./ci/build.sh

msys2:
name: MSYS2 native build
runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3

- uses: msys2/setup-msys2@v2
with:
msystem: MSYS

- name: Install dependencies
run: pacman -S --noconfirm autoconf automake libtool gcc gettext make >
libedit-devel pcre2-devel openssl-devel zlib-devel libiconv-devel

- name: Run tests
run: ./ci/build.sh
2 changes: 1 addition & 1 deletion ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ autoreconf -ifv
cd $(mktemp -d)
trap 'rm -rf ~+ || true' EXIT
~-/configure --{build,host}=${CONFIGURE_HOST} ${CONFIGURE_OPTS} \
--disable-dependency-tracking --disable-silent-rules --enable-debug-checks
--disable-dependency-tracking --disable-silent-rules --enable-debug-checks

# test
if ! make -j$(nproc) distcheck DISTCHECK_CONFIGURE_FLAGS=${CONFIGURE_OPTS}
Expand Down

0 comments on commit d07115a

Please sign in to comment.