-
Notifications
You must be signed in to change notification settings - Fork 51
66 lines (56 loc) · 1.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build CI
on:
workflow_dispatch:
push:
branches: [ "master"]
pull_request:
branches: [ "master" ]
env:
URING_VER: "2.2"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: "acquire: ubdsrv"
uses: actions/checkout@v3
with:
path: ubdsrv
- name: "acquire: liburing"
run: |
wget https://brick.kernel.dk/snaps/liburing-$URING_VER.tar.gz
tar xzvf liburing-$URING_VER.tar.gz
- name: "build: liburing"
working-directory: liburing-${{ env.URING_VER }}
shell: bash
run: |
./configure
make -j$(nproc)
sudo make install
- name: "build: ubdsrv with --enable-debug"
working-directory: ubdsrv
run: |
LIBURING_DIR=${{ github.workspace }}/liburing-$URING_VER ./build_with_liburing_src --enable-debug
- name: "build: ubdsrv"
working-directory: ubdsrv
run: |
make distclean
LIBURING_DIR=${{ github.workspace }}/liburing-$URING_VER ./build_with_liburing_src
- name: "build: installable artifacts"
working-directory: ubdsrv
shell: bash
run: |
mkdir -p ${{ github.workspace }}/files
make DESTDIR=${{ github.workspace }}/files install
- name: "publish: installable artifacts"
uses: actions/upload-artifact@v3
with:
name: ubdsrv
if-no-files-found: error
path: ${{ github.workspace }}/files/**
- name: "publish: logs"
uses: actions/upload-artifact@v3
if: always()
with:
name: build-logs
if-no-files-found: ignore
path: ubdsrv/*.log