From 6004932431fadac653d220754c13ad559ef0b250 Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Thu, 16 Nov 2023 20:03:47 +0100 Subject: [PATCH] Install system-wide and user-style --- .github/workflows/tests.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b0ca175..5018873 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,6 +17,7 @@ jobs: - name: Checkout prepare script uses: actions/checkout@v4 with: + depth: 1 sparse-checkout: prepare.sh sparse-checkout-cone-mode: false @@ -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: Checkout prepare script + uses: actions/checkout@v4 + with: + 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