build: add workflow

This commit is contained in:
sicheng
2022-07-29 23:46:57 +08:00
parent ac4f79bbf4
commit 56ac18bc05

30
.github/workflows/ubuntu.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Ubuntu CI
on:
push:
branches: [ "master", "formaster" ]
pull_request:
branches: [ "master", "formaster" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.16.x'
- name: Require Packages
run: sudo apt update; sudo apt install -y liblzo2-dev libpam-dev; sudo apt install -y graphviz autoconf automake bzip2 debhelper dh-autoreconf libssl-dev libtool openssl procps python-all python-six libunbound-dev
- name: Update Source
run: make update
- name: Test and Build
run: make test && make gz