-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (40 loc) · 1.17 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
44
45
46
47
48
49
50
51
52
name: build
on:
workflow_dispatch:
pull_request:
branches: [ 'main' ]
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install third party dependencies
run: sudo apt update && sudo apt install build-essential zlib1g-dev libsqlite3-dev libz-dev curl gem ruby unzip p7zip-full unrar-free libgcrypt-dev
- name: Git Clone LDB
uses: actions/checkout@v3
with:
repository: scanoss/ldb
ref: master
path: ldb
- name: Build LDB
run: cd ldb && make all && sudo make install && sudo mkdir /var/lib/ldb
- name: make
run: make all
- name: version
run: echo "::set-output name=version::$(./scanoss -version)"
id: version
- name: Test output
run: |
echo ${{ steps.version.outputs.version }}
- name: 'Tar files'
run: tar czvf scanoss.tar.gz scanoss LICENSES/GPL-2.0-only.txt
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: scanoss-${{ steps.version.outputs.version }}-amd64.tar.gz
path: |
scanoss.tar.gz
retention-days: 5