File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : OS-Build-Releases
2
+
3
+ on :
4
+ schedule :
5
+ # Runs "At 22:00 UTC every day-of-week"
6
+ - cron : ' 0 22 * * *'
7
+ workflow_dispatch :
8
+ inputs :
9
+ tagName :
10
+ description : ' Tag Name (e.g 0.9.7 or latest)'
11
+ required : true
12
+ default : ' latest'
13
+
14
+ jobs :
15
+ build :
16
+ name : Build OS packages
17
+ runs-on : ubuntu-20.04
18
+ permissions :
19
+ contents : write
20
+ packages : write
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ with :
24
+ submodules : recursive
25
+ - uses : actions/setup-python@v2
26
+ - uses : actions/setup-go@v3
27
+ with :
28
+ go-version : ' >=1.18.0'
29
+ - name : Install Dependencies
30
+ run : sudo apt-get update && sudo apt-get -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev elfutils dwarves git linux-tools-$(uname -r) libbsd-dev bridge-utils unzip build-essential bison flex iproute2
31
+ - name : Perform any pre-requisite operations
32
+ run : |
33
+ sudo mkdir -p /opt/loxilb/
34
+ sudo apt-get purge -y libssl-dev 2>&1 >> /dev/null | true
35
+ - name : Build loxilb deb package
36
+ run : |
37
+ git clone https://github.com/loxilb-io/tools.git build-tools && cd build-tools/pkg/ && make major=${{ github.event.inputs.tagName }} && cd -
38
+ - name : Upload the package to a release
39
+ if : github.repository == 'loxilb-io/loxilb'
40
+ uses : ncipollo/release-action@v1
41
+ with :
42
+ tag : v${{ github.event.inputs.tagName }}
43
+ allowUpdates : true
44
+ artifacts : " build-tools/pkg/*.deb"
You can’t perform that action at this time.
0 commit comments