sing-geosite/.github/workflows/build.yaml

29 lines
574 B
YAML
Raw Normal View History

2022-07-05 09:12:35 +08:00
name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
2024-05-15 21:56:09 +08:00
uses: actions/checkout@v3
2022-07-05 09:12:35 +08:00
with:
fetch-depth: 0
- name: Setup Go
2024-05-15 21:56:09 +08:00
uses: actions/setup-go@v5
2022-07-05 09:12:35 +08:00
with:
2024-05-15 21:56:09 +08:00
go-version: ^1.22
2022-07-05 09:12:35 +08:00
- name: Build geosite
id: build
env:
NO_SKIP: true
run: |
go run -v .
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: geosite.db
path: geosite.db