From 6a67168291df1e3e960c65d63735da7cd08584d1 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Wed, 12 Feb 2025 09:44:43 +0000 Subject: [PATCH] build: zstd compress --- .github/workflows/pages.yml | 3 ++- .gitlab-ci.yml | 3 ++- README.md | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f954924..6008c6b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0844941..6b6028c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/README.md b/README.md index 26fd0b9..a1950cb 100644 --- a/README.md +++ b/README.md @@ -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