Do not use slim Docker image since we need to build pzstd wheel with gcc #192
Workflow file for this run
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
name: CI | |
on: | |
push: | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build image | |
run: docker build . -t sotoki | |
- run: mkdir -p output | |
- name: run for beer meta | |
run: docker run -v $(pwd)/output:/output sotoki sotoki --domain "beer.meta.stackexchange.com" --threads 20 --output /output/ --zim-file beer_meta.zim --mirror "https://org-kiwix-stackexchange.s3.us-west-1.wasabisys.com" --redis-url "unix:///var/run/redis.sock" --debug | |
- run: ls -alh $(pwd)/output | |
- name: pull zim-tools | |
run: docker pull ghcr.io/openzim/zim-tools:latest | |
- name: run zimcheck | |
# not using --redundant as user profile pics can be duplicates | |
# not using --url_internal as zimcheck doesn't account for <base/> https://github.com/openzim/zim-tools/issues/250 | |
# not using --url_external as zimcheck doesn't account for <blockquote />, <script />, etc. https://github.com/openzim/zim-tools/issues/149 | |
run: docker run -v $(pwd)/output:/data:ro ghcr.io/openzim/zim-tools:latest zimcheck --empty --checksum --integrity --metadata --favicon --main --details /data/beer_meta.zim |