-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Artem Senichev <[email protected]>
- Loading branch information
Showing
3 changed files
with
75 additions
and
54 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,43 @@ | ||
name: Check | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
|
||
check: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
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 .github/workflows | ||
|
||
- 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 -Dversion=${{steps.version.outputs.VERSION}} -Dtests=enabled --prefix=/usr /tmp/build | ||
|
||
- name: Compile and link | ||
run: docker exec swayimg ninja -C /tmp/build | ||
|
||
- name: Install | ||
run: docker exec swayimg env DESTDIR=/tmp/install ninja -C /tmp/build install | ||
|
||
- name: Run installed | ||
run: docker exec swayimg /tmp/install/usr/bin/swayimg --version | ||
|
||
- name: Run unit tests | ||
run: docker exec swayimg meson test --verbose -C /tmp/build |
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,32 @@ | ||
FROM archlinux:latest | ||
|
||
RUN pacman --sync --sysupgrade --refresh --refresh --noconfirm \ | ||
pkgconf \ | ||
clang \ | ||
meson \ | ||
wayland wayland-protocols \ | ||
gtest \ | ||
fontconfig \ | ||
libxkbcommon \ | ||
libavif \ | ||
libexif \ | ||
libheif \ | ||
libjpeg-turbo \ | ||
libjxl \ | ||
librsvg \ | ||
libtiff \ | ||
libwebp \ | ||
openexr | ||
|
||
RUN useradd --create-home builder | ||
|
||
ENV USER=builder | ||
ENV HOME=/home/builder | ||
|
||
ENV CC="clang" | ||
ENV CXX="clang++" | ||
ENV CFLAGS="-g -fsanitize=address" | ||
ENV CXXFLAGS="-g -fsanitize=address" | ||
ENV LDFLAGS="-fsanitize=address" | ||
|
||
USER builder |
This file was deleted.
Oops, something went wrong.