mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
build: add workflow
This commit is contained in:
30
.github/workflows/ubuntu.yml
vendored
Normal file
30
.github/workflows/ubuntu.yml
vendored
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user