Skip to content

Commit

Permalink
ci: Add i386 build check
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Aug 4, 2024
1 parent 7daafae commit b3d3571
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/Alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Alpine 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
22 changes: 22 additions & 0 deletions .github/workflows/Dockerfile.Alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM i386/alpine:latest

RUN apk add \
build-base \
bash-completion-dev \
giflib-dev \
json-c-dev \
libexif-dev \
libheif-dev \
libjpeg-turbo-dev \
libjxl-dev \
librsvg-dev \
libwebp-dev \
libxkbcommon-dev \
meson \
wayland-dev \
wayland-protocols

RUN useradd --create-home builder
ENV USER=builder
ENV HOME=/home/builder
USER builder

0 comments on commit b3d3571

Please sign in to comment.