From fbaca724e2add259f7aba7f92b1ee528b646d31d Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Mon, 17 Jun 2024 09:38:27 +0200 Subject: [PATCH] Add build.txt entry --- .github/workflows/compilation.yml | 6 ++++-- pacman.sh | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 6c3bc31..df2376d 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -11,14 +11,16 @@ jobs: runs-on: ubuntu-latest container: alpine:latest steps: - - uses: actions/checkout@v4 - name: Install dependencies run: | - apk add build-base bash python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev + apk add git build-base bash python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev + + - uses: actions/checkout@v4 - name: Compile project run: | + chown -R $(id -nu):$(id -ng) . export PSPDEV=$PWD/pspdev export PATH=$PATH:$PSPDEV/bin ./pacman.sh diff --git a/pacman.sh b/pacman.sh index af9a9aa..a9dd639 100755 --- a/pacman.sh +++ b/pacman.sh @@ -60,5 +60,12 @@ install -m 755 scripts/psp-makepkg "${PSPDEV}/bin/psp-makepkg" ## Make sure the dbpath directory exists mkdir -p "${PSPDEV}/var/lib/pacman" +## Store build information +BUILD_FILE="${PSPDEV}/build.txt" +if [[ -f "${BUILD_FILE}" ]]; then + sed -i'' '/^psp-pacman /d' "${BUILD_FILE}" +fi +git log -1 --format="psp-pacman %H %cs %s" >> "${BUILD_FILE}" + ## Done echo "psp-pacman installation finished."