forked from laurikari/tre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically build and run tests on push.
- Loading branch information
1 parent
07e66d0
commit 8924467
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and run tests | ||
|
||
on: [ push, pull_request, workflow_dispatch ] | ||
|
||
jobs: | ||
linux: | ||
name: Ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare | ||
run: sudo apt-get install -y 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 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-logs | ||
path: tests/**/*.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 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Test logs | ||
path: tests/**/*.log |