Skip to content

Commit 718f091

Browse files
authored
Merge pull request #1962 from njfox/aur-ci
Update AUR CI to build against PR instead of main
2 parents 87f8e86 + c70d85e commit 718f091

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/linux-aur.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@ jobs:
1313
image: archlinux:latest
1414
steps:
1515
- name: Install dependencies
16-
run: |
16+
run: |
1717
pacman -Syu --noconfirm --needed capstone curl ffmpeg freetype2 glfw libuv sdl2 zlib git make pkg-config sudo base-devel pacman-contrib
18+
- uses: actions/checkout@v3
19+
with:
20+
set-safe-directory: true
1821
- name: Create builduser
1922
run: |
2023
useradd builduser -m
2124
passwd -d builduser
2225
- name: Build AUR Package
2326
run: |
24-
git clone https://aur.archlinux.org/pcsx-redux-git.git
25-
chown -R builduser:builduser pcsx-redux-git
26-
cd pcsx-redux-git
27+
mkdir /build
28+
git clone https://aur.archlinux.org/pcsx-redux-git.git /build/pcsx-redux-git
29+
chown -R builduser:builduser /build
30+
cd /build/pcsx-redux-git
31+
sed -i s,git+https://github.com/grumpycoders/pcsx-redux.git,git+file://$GITHUB_WORKSPACE#commit=$GITHUB_SHA,g PKGBUILD
2732
sudo -u builduser makepkg

0 commit comments

Comments
 (0)