-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (39 loc) · 1.42 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
name: Build and Test Orbetto
on: [pull_request]
jobs:
linux:
name: Build and Test Orbetto on Linux
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update
- run: sudo apt-get install -y libusb-1.0-0-dev libzmq3-dev meson libsdl2-dev libdwarf-dev libdw-dev libelf-dev libcapstone-dev python3-pip ninja-build protobuf-compiler cmake
- run: sudo pip3 install meson==1.2.0
- uses: actions/checkout@v3
- run: meson setup ./build
working-directory: ext/orbetto
- run: ninja -C ./build
working-directory: ext/orbetto
- run: meson install -C ./build --destdir ./install
working-directory: ext/orbetto
- uses: actions/upload-artifact@v3
with:
name: orbetto-linux
path: ext/orbetto/build/install/**/*
if-no-files-found: error
osx:
name: Build and Test Orbetto on macOS
runs-on: macos-13
steps:
- run: brew install zmq sdl2 libelf protobuf meson ninja capstone dwarfutils cmake
- uses: actions/checkout@v3
- run: meson setup ./build
working-directory: ext/orbetto
- run: ninja -C ./build
working-directory: ext/orbetto
- run: meson install -C ./build --destdir ./install
working-directory: ext/orbetto
- uses: actions/upload-artifact@v3
with:
name: orbetto-osx
path: ext/orbetto/build/install/**/*
if-no-files-found: error