-
Notifications
You must be signed in to change notification settings - Fork 63
90 lines (87 loc) · 2.76 KB
/
builds.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Build bpftools archives
on: [push, pull_request]
jobs:
build_jdwp_project:
name: Build and Test JDWP Project
runs-on: ubuntu-22.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Initialize JDWP Project Dependencies
run: make buck2-host python-host pyre-host
- name: Build and run
run: |
eval `make setup-env`
buck2 run //projects/jdwp:main
- name: Run Tests
run: |
eval `make setup-env`
buck2 test //projects/jdwp/tests/...
- name: Run Pyre Type Checking
run: |
eval `make setup-env`
cd projects/jdwp && pyre check
# build_bpftools:
# name: Build bpftools archive
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# env:
# - ARCH: arm64
# - ARCH: x86_64
# steps:
# - uses: actions/checkout@v3
# - name: Install deps
# run: sudo ./scripts/jammy-install-deps.sh
# - name: Setup ndk
# run: ./scripts/download-ndk.sh
# - name: Build
# env: ${{matrix.env}}
# run: make bpftools NDK_PATH=`pwd`/android-ndk-r23b NDK_ARCH=${{ matrix.env['ARCH'] }}
# - uses: actions/upload-artifact@v3
# with:
# name: bpftools-android-${{ matrix.env['ARCH'] }}.tar.gz
# path: bpftools-${{ matrix.env['ARCH'] }}.tar.gz
# build_bpftools_min:
# name: Build bpftools-min archive
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# env:
# - ARCH: arm64
# - ARCH: x86_64
# steps:
# - uses: actions/checkout@v3
# - name: Install deps
# run: sudo ./scripts/jammy-install-deps.sh
# - name: Setup ndk
# run: ./scripts/download-ndk.sh
# - name: Build
# run: make bpftools-min NDK_PATH=`pwd`/android-ndk-r23b NDK_ARCH=${{ matrix.env['ARCH'] }}
# - uses: actions/upload-artifact@v3
# with:
# name: bpftools-min-android-${{ matrix.env['ARCH'] }}.tar.gz
# path: bpftools-min-${{ matrix.env['ARCH'] }}.tar.gz
# build_bpftrace_static:
# name: Build static bpftrace binaries
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# env:
# - ARCH: arm64
# - ARCH: x86_64
# - ARCH: armv7
# steps:
# - uses: actions/checkout@v3
# - name: Install deps
# run: sudo ./scripts/jammy-install-deps.sh
# - name: Setup ndk
# run: ./scripts/download-ndk.sh
# - name: Build
# run: make bpftrace NDK_PATH=`pwd`/android-ndk-r23b NDK_ARCH=${{ matrix.env['ARCH'] }} STATIC_LINKING=true LLVM_BPF_ONLY=true
# - uses: actions/upload-artifact@v3
# with:
# name: bpftrace-android-${{ matrix.env['ARCH'] }}
# path: out/android/${{ matrix.env['arch'] }}/bin/bpftrace