Skip to content

Commit

Permalink
Install system-wide and user-style
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Nov 16, 2023
1 parent 526ea37 commit 974b30d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Checkout prepare script
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: prepare.sh
sparse-checkout-cone-mode: false

Expand All @@ -34,3 +35,29 @@ jobs:

- name: Check README.md
run: tools/is-clean --make --root=doc README.md

test:
needs: build
continue-on-error: true
strategy:
matrix:
kind: [ "system", "user" ]
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Prepare build environment
run: ./prepare.sh -us | tee -a "$GITHUB_ENV"

- name: Install
run: |
if [ "${{ matrix.kind }}" = "user" ]; then
./install.sh -u
elif [ "${{ matrix.kind }}" = "system" ]; then
sudo ./install.sh -s
else
exit 1
fi
2 changes: 1 addition & 1 deletion prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ done
shift $((OPTIND-1))

if [ -z "$DISTRO" ]; then
if command -v lsb_release; then
if command -v lsb_release >/dev/null; then
DISTRO=$(lsb_release -is)
elif command -v pacman >/dev/null; then
DISTRO="Arch"
Expand Down

0 comments on commit 974b30d

Please sign in to comment.