diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 9155fd1f2a..c6c90355f4 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -12,11 +12,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 'stable' - - name: Set variables run: | echo "GOAMD64=v3" >> $GITHUB_ENV @@ -57,6 +52,17 @@ jobs: repository: cokebar/gfwlist2dnsmasq path: gfwlist2dnsmasq + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version-file: ./custom/go.mod + cache-dependency-path: ./custom/go.sum + + - name: Get geoip.dat relative files + run: | + wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat + wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat.sha256sum + - name: Generate GFWList domains run: | cd gfwlist2dnsmasq || exit 1