mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
transfer geodat with actions/cache
This commit is contained in:
parent
2d898480be
commit
cc4be239cf
2 changed files with 59 additions and 57 deletions
43
.github/workflows/test.yml
vendored
43
.github/workflows/test.yml
vendored
|
@ -34,44 +34,11 @@ jobs:
|
|||
check-latest: true
|
||||
- name: Checkout codebase
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare geoip
|
||||
if: ${{ matrix.os != 'windows-latest' }}
|
||||
uses: nick-fields/retry@v2
|
||||
- name: Restore Cache
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
timeout_minutes: 60
|
||||
retry_wait_seconds: 30
|
||||
max_attempts: 60
|
||||
command: |
|
||||
mkdir resources
|
||||
wget -O ./resources/geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat
|
||||
- name: Prepare geosite
|
||||
if: ${{ matrix.os != 'windows-latest' }}
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 60
|
||||
retry_wait_seconds: 30
|
||||
max_attempts: 60
|
||||
command: |
|
||||
wget -O ./resources/geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat
|
||||
- name: Prepare geoip for Windows
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 60
|
||||
retry_wait_seconds: 30
|
||||
max_attempts: 60
|
||||
command: |
|
||||
mkdir resources
|
||||
Invoke-WebRequest -Uri "https://github.com/v2fly/geoip/releases/latest/download/geoip.dat" -OutFile "./resources/geoip.dat"
|
||||
- name: Prepare geosite for Windows
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 60
|
||||
retry_wait_seconds: 30
|
||||
max_attempts: 60
|
||||
command: |
|
||||
Invoke-WebRequest -Uri "https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat" -OutFile "./resources/geosite.dat"
|
||||
path: resources
|
||||
key: xray-geodat-
|
||||
enableCrossOsArchive: true
|
||||
- name: Test
|
||||
run: go test -timeout 1h -v ./...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue