diff --git a/.builds/alpine.yml b/.builds/alpine.yml deleted file mode 100644 index a807904..0000000 --- a/.builds/alpine.yml +++ /dev/null @@ -1,19 +0,0 @@ -image: alpine/edge -packages: - - meson - - samurai - - gtk4.0-dev - - tiff-dev - - zbar-dev -tasks: - - build: | - cd megapixels - meson build - ninja -C build - - test: | - cd megapixels - ninja -C build test -sources: - - https://git.sr.ht/~martijnbraam/megapixels -artifacts: - - megapixels/build/megapixels diff --git a/.builds/arch.yml b/.builds/arch.yml deleted file mode 100644 index 0578824..0000000 --- a/.builds/arch.yml +++ /dev/null @@ -1,18 +0,0 @@ -image: archlinux -packages: - - meson - - ninja - - gtk4 - - zbar -tasks: - - build: | - cd megapixels - meson build - ninja -C build - - test: | - cd megapixels - ninja -C build test -sources: - - https://git.sr.ht/~martijnbraam/megapixels -artifacts: - - megapixels/build/megapixels diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..026b94e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +.build_template: &build_definition + script: + - meson build + - ninja -C build + - ninja -C build test + +build:debian: + image: debian:bookworm-slim + before_script: + - apt update && apt -y install gcc meson ninja-build libgtk-4-dev libtiff-dev libzbar-dev + <<: *build_definition + +build:alpine: + image: alpine:edge + before_script: + - apk add --no-cache build-base meson samurai gtk4.0-dev tiff-dev zbar-dev + <<: *build_definition +