-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (38 loc) · 1.04 KB
/
pr-test.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
name: PR Testing
on: [pull_request]
jobs:
make-workflows:
runs-on: ubuntu-latest
env:
DESTDIR: /tmp/nilrt-snac
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history so that git-describe works
- run: make all
- name: make install
run: |
make install
tree -ap "${DESTDIR}"
- name: make uninstall
run: |
make uninstall
tree -ap "${DESTDIR}"
leftover_files=false
find "${DESTDIR}" -type f >./leftover_files
while read file; do
echo "ERROR: leftover file: ${file}"
leftover_files=true
done <./leftover_files
if $leftover_files; then
echo "ERROR: uninstall did not remove all files."
cat ./leftover_files
exit 1
else
echo "OK"
fi
- name: make dist
run: |
make dist
tar --list -f ./nilrt-snac-*.tar.gz