diff --git a/.env.test b/.env.test index 16c52ced..df423b90 100644 --- a/.env.test +++ b/.env.test @@ -13,4 +13,6 @@ TYPESENSE_KEY=xyz # Disable the proxy for the test env KOBO_PROXY_USE_EVERYWHERE=0 -KOBO_PROXY_ENABLED=0 \ No newline at end of file +KOBO_PROXY_ENABLED=0 + +KEPUBIFY_BIN=/usr/local/bin/kepubify \ No newline at end of file diff --git a/.github/workflows/symfony.yml b/.github/workflows/symfony.yml index d38b77b4..3038040e 100644 --- a/.github/workflows/symfony.yml +++ b/.github/workflows/symfony.yml @@ -42,6 +42,28 @@ jobs: ${{ runner.os }}-php- - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Cache kepubify + id: kepubify-cache-restore + uses: actions/cache@v3 + with: + path: /usr/local/bin/kepubify + key: ${{ runner.os }}-kepubify-cache + - name: Install kepubify + if: steps.kepubify-cache-restore.outputs.cache-hit != 'true' + run: | + mkdir -p /usr/local/bin/ + # Install kepubify (from https://github.com/linuxserver/docker-calibre-web/blob/master/Dockerfile) + KEPUBIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/pgaskin/kepubify/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]'); + curl -o /usr/local/bin/kepubify -L https://github.com/pgaskin/kepubify/releases/download/${KEPUBIFY_RELEASE}/kepubify-linux-64bit + chmod +x /usr/local/bin/kepubify + - name: Cache kepubify + uses: actions/cache/save@v4 + if: steps.kepubify-cache-restore.outputs.cache-hit != 'true' + id: kepubify-cache-save + with: + path: /usr/local/bin/kepubify + key: ${{ runner.os }}-kepubify-cache + - name: Create Database run: | mkdir -p data