Skip to content

Commit dddf838

Browse files
authored
Merge pull request #22 from sharkwouter/main
Add line to build.txt file
2 parents 6d2e8cf + 2125bd1 commit dddf838

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/compilation.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
matrix:
1515
os: [[alpine, bash], [fedora, bash]]
1616
steps:
17-
- uses: actions/checkout@v4
18-
1917
- name: Install dependencies Alpine
2018
if: matrix.os[0] == 'alpine'
2119
run: |
@@ -26,8 +24,11 @@ jobs:
2624
run: |
2725
dnf -y install @development-tools g++ wget xz git autoconf automake python3 python3-pip cmake pkgconf libarchive-devel openssl-devel gpgme-devel libtool
2826
27+
- uses: actions/checkout@v4
28+
2929
- name: Compile Tools
3030
run: |
31+
chown -R $(id -nu):$(id -ng) .
3132
export PSPDEV=$PWD/pspdev
3233
export PATH=$PATH:$PSPDEV/bin
3334
./build-all.sh

.github/workflows/docker.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

18-
- name: Set up QEMU
19-
uses: docker/setup-qemu-action@v2
20-
21-
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v2
23-
2418
- name: Login to Github registry
2519
uses: docker/login-action@v2
2620
with:
2721
username: ${{ github.actor }}
2822
password: ${{ secrets.GITHUB_TOKEN }}
2923
registry: ghcr.io
3024

31-
- uses: docker/build-push-action@v4
25+
- uses: docker/build-push-action@v5
3226
with:
27+
context: .
3328
push: true
3429
tags: ghcr.io/${{ github.repository }}:latest
3530

build-all.sh

+7
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ else
4646
for SCRIPT in ${BUILD_SCRIPTS[@]}; do "$SCRIPT" "$TAG" || { echo "$SCRIPT: Failed."; exit 1; } done
4747

4848
fi
49+
50+
## Store build information
51+
BUILD_FILE="${PSPDEV}/build.txt"
52+
if [[ -f "${BUILD_FILE}" ]]; then
53+
sed -i='' '/^psptoolchain-extra /d' "${BUILD_FILE}"
54+
fi
55+
git log -1 --format="psptoolchain-extra %H %cs %s" >> "${BUILD_FILE}"

0 commit comments

Comments
 (0)