-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (47 loc) · 1.61 KB
/
Copy pathlinux.yml
File metadata and controls
59 lines (47 loc) · 1.61 KB
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
53
54
55
56
57
58
59
# Only trigger when a PR is committed.
name: Linux
on: [pull_request]
jobs:
build:
name: Test
# We used to build on ubuntu-18.04 but that is now deprecated by
# GitHub. Earlier distributions will have to use the musl build.
runs-on: ubuntu-24.04
steps:
- name: Check out code and submodules into the Go module directory
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-go@v2
with:
go-version: '^1.26'
- run: go version
- name: Get dependencies
run: |
go get -v -t -d ./...
sudo apt-get update
sudo apt-get install libsystemd-dev clang llvm libelf-dev git make libzstd-dev linux-tools-common
- name: Build GUI-less binary
run: |
mkdir ./output/
export PATH=$PATH:~/go/bin/
make linux_bare
- name: Run built-in testcases
run: |
echo "Running built-in tests."
go test -race -v --tags server_vql $(go list ./... | grep -v vql/linux/bpf)
- name: Test Golden Generic
if: always()
run: |
echo "Running OS generic tests."
output/velociraptor* -v golden artifacts/testdata/server/testcases/ --env srcDir=`pwd` --config artifacts/testdata/windows/test.config.yaml
- name: Test Golden Linux
if: always()
run: |
echo "Running Linux tests."
output/velociraptor* -v golden artifacts/testdata/linux/ --env srcDir=`pwd` --config artifacts/testdata/windows/test.config.yaml
- name: StoreBinaries
uses: actions/upload-artifact@v4
with:
name: Binaries.zip
path: output