mirror of
https://github.com/SagerNet/sing-geoip.git
synced 2025-02-06 13:02:43 +08:00
27 lines
538 B
YAML
27 lines
538 B
YAML
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 geoip
|
|
env:
|
|
NO_SKIP: true
|
|
run: go run -v .
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: geoip.db
|
|
path: geoip.db |