forked from mypaint/libmypaint
-
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.
Merge pull request mypaint#192 from jtojnar/github-ci
ci: Replace Travis with GitHub Actions
- Loading branch information
Showing
1 changed file
with
37 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,37 @@ | ||
name: Test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
linux: | ||
name: Linux | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
configureFlags: | ||
- "" | ||
- "--with-introspection" | ||
- "--with-gegl" | ||
include: | ||
- configureFlags: "--with-introspection" | ||
extraDeps: "libgirepository1.0-dev" | ||
- configureFlags: "--with-gegl" | ||
extraDeps: "libgegl-dev" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Install dependencies" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
libjson-c-dev \ | ||
intltool \ | ||
${{ matrix.extraDeps }} | ||
- name: "Build" | ||
run: | | ||
./autogen.sh | ||
./configure ${{ matrix.configureFlags }} | ||
make | ||
- name: "Run tests" | ||
run: make distcheck |