Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: Add workflow for building #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
on: [push, pull_request]
name: build
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
include:
- os: ubuntu-18.04
artifact_name: yad
asset_name: yad-ubuntu-18.04
- os: ubuntu-20.04
artifact_name: yad
asset_name: yad-ubuntu-20.04
- os: ubuntu-22.04
artifact_name: yad
asset_name: yad-ubuntu-22.04
fail-fast: false

steps:
- name: Install dependencies
id: build_env
run: |
sudo apt update
sudo apt install intltool libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libgspell-1-dev libgtksourceview-3.0-dev hicolor-icon-theme

- name: Checkout sources
uses: actions/checkout@v3

- name: Configure and build
run: |
autoreconf -ivf && intltoolize

./configure \
--enable-html \
--enable-tray \
--enable-spell \
--enable-sourceview \
--enable-standalone \
--enable-tools \
--enable-icon-browser

make

- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: 'yad-master-${{ matrix.os }}'
path: |
src/yad
src/yad-icon-browser
src/yad-tools