build: zstd compress

This commit is contained in:
Ming Di Leom 2025-02-12 09:44:43 +00:00
parent b41e134240
commit 6a67168291
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
3 changed files with 5 additions and 2 deletions

View File

@ -14,13 +14,14 @@ jobs:
- name: Install Dependencies
run: |
apk update
apk add brotli curl git grep
apk add brotli curl git grep zstd
- name: Build
run: sh ./src/script.sh
- name: Compress
run: |
find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec gzip -f -k -9 {} \;
find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec brotli -f -k -9 {} \;
find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec zstd -f -k -9 {} \;
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:

View File

@ -12,12 +12,13 @@ build_job:
stage: build
before_script:
- apk update && apk add brotli curl git grep
- apk update && apk add brotli curl git grep zstd
script:
- sh src/script.sh
- find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec gzip -f -k -9 {} \;
- find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec brotli -f -k -9 {} \;
- find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec zstd -f -k -9 {} \;
artifacts:
paths:

View File

@ -210,6 +210,7 @@ All filters are also available as gzip- and brotli-compressed.
- Gzip: https://malware-filter.gitlab.io/malware-filter/vn-badsite-filter.txt.gz
- Brotli: https://malware-filter.gitlab.io/malware-filter/vn-badsite-filter.txt.br
- Zstd: https://malware-filter.gitlab.io/malware-filter/vn-badsite-filter.txt.zstd
## FAQ and Guides