-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # .reuse/dep5
- Loading branch information
Showing
35 changed files
with
1,117 additions
and
196 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 |
---|---|---|
|
@@ -126,3 +126,41 @@ jobs: | |
with: | ||
files: ./tests/_output/coverage.xml | ||
verbose: true | ||
test-linux-imagemagick: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: docker-compose pull | ||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
- name: Setup docker | ||
run: docker-compose --file docker-compose-imagemagick.yml up --build -d | ||
- name: Validate composer.json and composer.lock | ||
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer validate" | ||
- name: Install dependencies | ||
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer install --prefer-dist --no-progress --no-suggest" | ||
- name: Run test suite | ||
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml" | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./tests/_output/coverage.xml | ||
verbose: true | ||
test-linux-vips: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: docker-compose pull | ||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
- name: Setup docker | ||
run: docker-compose --file docker-compose-vips.yml up --build -d | ||
- name: Validate composer.json and composer.lock | ||
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer validate" | ||
- name: Install dependencies | ||
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "composer install --prefer-dist --no-progress && composer require jcupitt/vips" | ||
- name: Run test suite | ||
run: docker exec -w /home/project jpeg-xl-encode_default_1 bash -c "export XDEBUG_MODE=coverage; ./vendor/bin/codecept run --debug -vvv --coverage --coverage-xml" | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./tests/_output/coverage.xml | ||
verbose: true |
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
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
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
Binary file not shown.
Binary file renamed
BIN
+9.02 MB
bin/cjxl-v0-5-0-linux-x64-static → bin/cjxl-v0-6-1-linux-x64-static
100644 → 100755
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+4.05 MB
bin/cjxl-v0-5-0-windows-x64-static.exe → bin/cjxl-v0-6-1-windows-x64-static.exe
100644 → 100755
Binary file not shown.
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
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,12 @@ | ||
# SPDX-FileCopyrightText: 2021 Johannes Siipola | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
version: "3.9" | ||
services: | ||
default: | ||
build: | ||
context: . | ||
dockerfile: imagemagick.Dockerfile | ||
tty: true | ||
volumes: | ||
- .:/home/project |
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,12 @@ | ||
# SPDX-FileCopyrightText: 2021 Johannes Siipola | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
version: "3.9" | ||
services: | ||
default: | ||
build: | ||
context: . | ||
dockerfile: vips.Dockerfile | ||
tty: true | ||
volumes: | ||
- .:/home/project |
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,50 @@ | ||
# SPDX-FileCopyrightText: 2021 Johannes Siipola | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
FROM php:7.4-cli | ||
|
||
RUN apt update && apt install -y \ | ||
cmake pkg-config libbrotli-dev \ | ||
libgif-dev libjpeg-dev libopenexr-dev libpng-dev libwebp-dev \ | ||
clang git | ||
|
||
ENV CC=clang | ||
ENV CXX=clang++ | ||
|
||
WORKDIR / | ||
RUN git clone https://github.com/libjxl/libjxl.git --recursive && cd /libjxl && git reset --hard tags/v0.6.1 && ./deps.sh | ||
WORKDIR /libjxl/build | ||
RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF .. | ||
RUN cmake --build . -- -j$(nproc) | ||
RUN cmake --install . | ||
|
||
# Imagick | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libxml2 \ | ||
libxml2-dev | ||
|
||
RUN mkdir -p /imagick-source \ | ||
&& cd /imagick-source \ | ||
&& curl "https://imagemagick.org/archive/ImageMagick.tar.gz" -o imagemagick.tar.gz \ | ||
&& tar -xof imagemagick.tar.gz -C /imagick-source --strip-components=1 \ | ||
&& rm imagemagick.tar.gz* \ | ||
&& ./configure --with-jxl=yes \ | ||
&& make \ | ||
&& make install \ | ||
&& make clean | ||
|
||
RUN pecl install imagick && docker-php-ext-enable imagick | ||
|
||
# Xdebug | ||
|
||
RUN apt-get clean | ||
RUN apt-get update | ||
|
||
RUN pecl install xdebug && docker-php-ext-enable xdebug | ||
|
||
# Composer | ||
|
||
RUN apt-get install -y libzip-dev zip && docker-php-ext-install zip | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
Oops, something went wrong.