-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (31 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update package info
run: sudo apt update
- name: Install dependencies
run: >
sudo apt install --no-install-recommends --yes
build-essential meson pkg-config wayland-protocols
libwayland-dev libjson-c-dev libxkbcommon-dev
libfreetype-dev libfontconfig-dev
libopenexr-dev libgif-dev libheif-dev libavif-dev
libjpeg-dev librsvg2-dev libtiff-dev libwebp-dev
- name: Check out source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get version
run: echo "VERSION=$(git describe --tags --long --always | sed 's/^v//;s/-/./')" >> $GITHUB_OUTPUT
id: version
- name: Configure
run: meson -Dversion=${{steps.version.outputs.VERSION}} --buildtype release --prefix /usr ./build
- name: Build
run: ninja -C ./build
- name: Install
run: DESTDIR=install ninja -C ./build install
- name: Check
run: ./build/install/usr/bin/swayimg --version