-
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.06 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
name: build
on:
push:
branches:
- '**'
paths:
- src/**
- Makefile
- .github/**
pull_request:
branches:
- '**'
paths:
- src/**
- Makefile
- .github/**
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: dep
run: |
sudo apt-get update --fix-missing
sudo apt-get -y install libmagic-dev moreutils libbsd-dev cargo libncurses5-dev libncursesw5-dev ncurses-bin
git submodule update --init --recursive
env:
SHELL_VERBOSE: 1
- name: build
run: |
cd src/ || exit 1
./.make install
./.make uninstall
env:
SHELL_VERBOSE: 1
- name: sudo-build
run: |
cd src/ || exit 1
sudo ./.make install
env:
SHELL_VERBOSE: 1
- name: test
run: |
cd src/ || exit 1
./.make test
env:
SHELL_VERBOSE: 1
- name: sudo-test
run: |
cd src/ || exit 1
sudo ./.make test
env:
SHELL_VERBOSE: 1