sing-geosite/.github/workflows/build.yaml
2023-12-15 09:55:28 +08:00

31 lines
592 B
YAML

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build geosite
id: build
env:
NO_SKIP: true
run: |
go run -v .
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: geosite.db
path: geosite.db