Add CI test to ensure symlink reinstalls work (#18252) ##build

This commit is contained in:
pancake 2021-01-22 00:52:12 +01:00 committed by GitHub
parent 39f5b12b8f
commit c3f7d0e1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -29,6 +29,18 @@ jobs:
# uses: actions/upload-artifact@v2
# with:
# path: radare2_dist/*
build-resymlink:
name: linux-acr-resymlink
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Installing with symlinks
run: sys/install.sh
- name: Uninstalling
run: sudo make uninstall
- name: Reinstalling without symlinks
run: sudo make install
build-spaces:
name: linux-meson-spaces
continue-on-error: true

View File

@ -286,6 +286,7 @@ deinstall uninstall:
cd libr && ${MAKE} uninstall
cd binr && ${MAKE} uninstall
cd shlr && ${MAKE} uninstall
cd libr/util/d && ${MAKE} uninstall
cd libr/syscall/d && ${MAKE} uninstall
cd libr/anal/d && ${MAKE} uninstall
@echo

View File

@ -20,6 +20,9 @@ install:
cp "${CWD}/$$FILE" "${R2_CHARSETS_PATH}/$$FILE" ; \
done
uninstall:
rm -rf "$(R2_CHARSETS_PATH)"
symstall install-symlink:
mkdir -p "$(R2_CHARSETS_PATH)"
for FILE in *.sdb ; do \