Simplify wayland protocol generation #180
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
name: Linux/i386 | |
on: [push, pull_request] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
env: | |
BUILD_PATH: /tmp/build | |
INSTALL_PATH: /tmp/install | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get swayimg version | |
run: echo "VERSION=$(git describe --tags --long --always | sed 's/^v//;s/-/./')" >> $GITHUB_OUTPUT | |
id: version | |
- name: Build docker image | |
run: docker build --tag=swayimg --file=.github/workflows/Dockerfile.Alpine . | |
- name: Run docker container | |
run: docker run --tty --detach --name=swayimg --volume=$PWD:$PWD:ro --workdir=$PWD swayimg | |
- name: Configure | |
run: > | |
docker exec swayimg | |
meson setup | |
-D version=${{steps.version.outputs.VERSION}} | |
-D heif=enabled | |
-D bash=enabled | |
-D exif=enabled | |
-D gif=enabled | |
-D jpeg=enabled | |
-D jxl=auto | |
-D svg=enabled | |
-D webp=enabled | |
-D man=true | |
-D desktop=true | |
--prefix=/usr | |
--werror | |
${{ env.BUILD_PATH }} | |
- name: Compile and link | |
run: docker exec swayimg meson compile -C ${{ env.BUILD_PATH }} | |
- name: Install | |
run: > | |
docker exec swayimg | |
env DESTDIR=${{ env.INSTALL_PATH }} | |
meson install -C ${{ env.BUILD_PATH }} | |
- name: Run installed | |
run: docker exec swayimg ${{ env.INSTALL_PATH }}/usr/bin/swayimg --version |