2022-07-05 12:18:20 +08:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-15 21:52:42 +08:00
|
|
|
uses: actions/checkout@v3
|
2022-07-05 12:18:20 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Go
|
2024-05-15 21:52:42 +08:00
|
|
|
uses: actions/setup-go@v5
|
2022-07-05 12:18:20 +08:00
|
|
|
with:
|
2024-05-15 21:52:42 +08:00
|
|
|
go-version: ^1.22
|
2022-07-05 12:18:20 +08:00
|
|
|
- name: Build geoip
|
|
|
|
env:
|
|
|
|
NO_SKIP: true
|
|
|
|
run: go run -v .
|
|
|
|
- name: Upload artifacts
|
2024-05-15 21:52:42 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-07-05 12:18:20 +08:00
|
|
|
with:
|
|
|
|
name: geoip.db
|
2023-11-29 14:26:06 +08:00
|
|
|
path: geoip.db
|