Skip to content

Commit

Permalink
Automatically build and run tests on push.
Browse files Browse the repository at this point in the history
  • Loading branch information
dag-erling committed Jun 30, 2024
1 parent 07e66d0 commit 1f7ca3c
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and run tests

on: [ push, pull_request, workflow_dispatch ]

jobs:
linux:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Prepare
run: |
(echo en_US.UTF-8; echo en_US.ISO-8859-1) | sudo tee /etc/locale.gen
sudo locale-gen
sudo update-locale LANG=en_US.UTF-8
sudo apt-get install -y autoconf automake autopoint gettext libtool
- name: Check out
uses: actions/checkout@v4
- name: Configure
run: ./utils/autogen.sh && ./configure --enable-debug
- name: Build
run: make
- name: Run tests
run: make check
- name: Run distribution tests
run: make distcheck
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: test-logs
path: **/*.log
macos:
name: macOS
runs-on: macos-latest
steps:
- name: Prepare
run: brew install autoconf automake gettext libtool
- name: Check out
uses: actions/checkout@v4
- name: Configure
run: ./utils/autogen.sh && ./configure --enable-debug
- name: Build
run: make
- name: Run tests
run: make check
- name: Run distribution tests
run: make distcheck
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: Test logs
path: **/*.log

0 comments on commit 1f7ca3c

Please sign in to comment.