Compare commits

..
Author SHA1 Message Date
世界 dd64ae0ebf Fixes 2024-09-12 17:50:19 +08:00
世界 f51c57d77a Fix workflow build 2024-09-07 08:45:49 +08:00
世界 19b54b9626 Merge category-*-cn to geolocation-cn 2024-09-07 08:44:03 +08:00
世界 d4b71e0c8d Update dependencies 2024-09-07 08:44:03 +08:00
世界 9f8a5e7cba Generate new rule-sets 2024-07-18 13:40:44 +08:00
HystericalDragonand世界 c69c0c0cc8 Update .gitignore 2024-07-18 11:59:36 +08:00
世界 9f67a380fd Update workflows 2024-05-15 21:56:09 +08:00
世界 153a1dbd04 Add renovate configuration 2024-05-15 21:56:06 +08:00
世界 e6f92f0e9c Update dependencies 2024-05-15 21:54:49 +08:00
世界 bbd9f11bb9 Update cn usage 2024-01-26 16:28:41 +08:00
世界 fc71b5c331 Merge category-*@cn to cn 2024-01-03 12:10:32 +08:00
世界 563f703dde Fix bad data 2023-12-30 22:51:19 +08:00
世界 e6c443b935 Update dependencies 2023-12-13 18:14:38 +08:00
世界 7d51b7ffb3 Add rule-set releases 2023-11-29 20:52:32 +08:00
世界 63a151aef9 Add delete-older-releases action 2023-11-16 00:17:55 +08:00
世界 94f16186e7 Update dependencies 2023-11-16 00:11:07 +08:00
世界 4a32d56c17 Fix and update 2022-10-26 19:36:12 +08:00
世界 50c4bf766c Support domain attr 2022-09-04 12:40:46 +08:00
世界 ec6544f157 Remove domains with attr 2022-09-04 11:33:10 +08:00
世界 9058c3c775 Fix convert root domain 2022-07-08 11:02:47 +08:00
世界 d80854f857 Add debug workflow 2022-07-05 09:13:57 +08:00
世界 782ba35a59 Init commit 2022-07-05 00:11:43 +08:00
1856 changed files with 721 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -e -o pipefail
mkdir -p release
cd release
git init
git config --local user.email "github-action@users.noreply.github.com"
git config --local user.name "GitHub Action"
git remote add origin https://github-action:$GITHUB_TOKEN@github.com/SagerNet/sing-geosite.git
git branch -M release
cp ../*.db ../*.sha256sum .
git add .
git commit -m "Update release"
git push -f origin release
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
set -e -o pipefail
function releaseRuleSet() {
dirName=$1
pushd $dirName
git init
git config --local user.email "github-action@users.noreply.github.com"
git config --local user.name "GitHub Action"
git remote add origin https://github-action:$GITHUB_TOKEN@github.com/SagerNet/sing-geosite.git
git branch -M $dirName
git add .
git commit -m "Update rule-set"
git push -f origin $dirName
popd
}
releaseRuleSet rule-set
releaseRuleSet rule-set-unstable
+22
View File
@@ -0,0 +1,22 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"commitMessagePrefix": "[dependencies]",
"extends": [
"config:base",
":disableRateLimiting"
],
"baseBranches": [
"main"
],
"golang": {
"enabled": false
},
"packageRules": [
{
"matchManagers": [
"github-actions"
],
"groupName": "github-actions"
}
]
}
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
PROJECTS=$(dirname "$0")/../..
go get -x github.com/sagernet/sing-box@$(git -C $PROJECTS/sing-box rev-parse HEAD)
go mod tidy
+24
View File
@@ -0,0 +1,24 @@
name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ^1.22
- name: Build geosite
id: build
env:
NO_SKIP: true
run: |
go run -v .
+53
View File
@@ -0,0 +1,53 @@
name: Release
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ^1.22
- name: Build geosite
id: build
run: |
go run -v .
- name: Release rule sets
if: steps.build.outputs.skip != 'true'
run: .github/release-rule-set.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate sha256 hash
if: steps.build.outputs.skip != 'true'
run: |
sha256sum geosite.db > geosite.db.sha256sum
sha256sum geosite-cn.db > geosite-cn.db.sha256sum
- name: Release release branch
if: steps.build.outputs.skip != 'true'
run: .github/release-branch.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: dev-drprasad/delete-older-releases@v0.3.2
if: steps.build.outputs.skip != 'true'
with:
keep_latest: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release geosite
if: steps.build.outputs.skip != 'true'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.build.outputs.tag }}
files: |
geosite.db
geosite.db.sha256sum
geosite-cn.db
geosite-cn.db.sha256sum
+5
View File
@@ -0,0 +1,5 @@
/.idea/
/vendor/
**.db
/rule-set/
/rule-set-unstable/
+17
View File
@@ -0,0 +1,17 @@
linters:
disable-all: true
enable:
- gofumpt
- govet
- gci
- staticcheck
linters-settings:
gci:
custom-order: true
sections:
- standard
- prefix(github.com/sagernet/)
- default
staticcheck:
go: '1.20'
+14
View File
@@ -0,0 +1,14 @@
Copyright (C) 2022 by nekohasekai <contact-sagernet@sekai.icu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+17
View File
@@ -0,0 +1,17 @@
fmt:
@gofumpt -l -w .
@gofmt -s -w .
@gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" .
fmt_install:
go install -v mvdan.cc/gofumpt@latest
go install -v github.com/daixiang0/gci@latest
lint:
golangci-lint run ./...
lint_install:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
test:
go test -v ./...
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More