-
Notifications
You must be signed in to change notification settings - Fork 307
44 lines (40 loc) · 1.03 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
workflow_dispatch:
schedule:
- cron: '45 2 * * *'
jobs:
build:
runs-on: ubuntu-latest
env:
BGPTOOLS_VERSION: 0.0.3
GO111MODULE: on
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-go@v2
with:
go-version: 1.16
- run: sudo apt-get install -y lftp bgpdump tree
- uses: actions/cache@v3
with:
key: ${{ runner.os }}-build-dependencies
path: |
~/go/bin
~/.cargo/bin
- run: ./dependency.sh
- run: ./generate.sh
- run: ./stat.sh
- run: ./guard.sh
- name: Checkout ip-lists branch
uses: actions/checkout@v3
if: github.event_name == 'schedule' && github.ref == 'refs/heads/master'
with:
ref: ip-lists
path: ip-lists
- run: ./upload.sh
if: github.event_name == 'schedule' && github.ref == 'refs/heads/master'