Fix: path to the go module dependency cache

This commit is contained in:
Larvan2 2023-09-22 11:19:09 +00:00
parent 5ddb7813b6
commit 8c98dec2ac

View File

@ -12,11 +12,6 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Set variables - name: Set variables
run: | run: |
echo "GOAMD64=v3" >> $GITHUB_ENV echo "GOAMD64=v3" >> $GITHUB_ENV
@ -57,6 +52,17 @@ jobs:
repository: cokebar/gfwlist2dnsmasq repository: cokebar/gfwlist2dnsmasq
path: 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 - name: Generate GFWList domains
run: | run: |
cd gfwlist2dnsmasq || exit 1 cd gfwlist2dnsmasq || exit 1