Skip to content

Commit

Permalink
Merge pull request #32 from sharkwouter/master
Browse files Browse the repository at this point in the history
Add build.txt entry
  • Loading branch information
sharkwouter authored Jun 17, 2024
2 parents 2c01e85 + fbaca72 commit 53603ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions pacman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 53603ec

Please sign in to comment.