Skip to content

Commit ebe77a7

Browse files
committed
chore(ci): attempt to patch glibc using root user
1 parent b490c2c commit ebe77a7

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,26 @@ jobs:
4040
needs: check
4141
container:
4242
image: mpsq/emacs-builder:latest
43+
options: --user root
4344
env:
4445
OLD_COMMIT_N: ${{ github.event.inputs.old_commit_n }}
4546
NEW_COMMIT_N: ${{ github.event.inputs.new_commit_n }}
4647
PKG_VERSION: ${{ needs.check.outputs.ver }}
4748
steps:
48-
- name: Prepare artifacts
49+
- name: Patch glibc
4950
run: |
50-
cd /home/pcr
51-
52-
# Get sources
53-
./pull.bash
54-
5551
# Work-around the issue with glibc 2.33 on old Docker engines
5652
# Extract files directly as pacman is also affected by the issue
5753
patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst
5854
curl -LO https://repo.archlinuxcn.org/x86_64/$patched_glibc
5955
bsdtar -C / -xvf $patched_glibc
56+
- name: Prepare artifacts
57+
run: |
58+
su - pcr
59+
cd /home/pcr
60+
61+
# Get sources
62+
./pull.bash
6063
6164
# Create artifacts
6265
makepkg
@@ -83,6 +86,8 @@ jobs:
8386
sed 's/^[^[:alnum:]]*//' | \
8487
# Prepend "- " to the message
8588
sed -r 's/(.*)/- \1/' >> body.md
89+
90+
exit
8691
- name: Create Release
8792
id: create_release
8893
uses: actions/create-release@v1
@@ -109,6 +114,7 @@ jobs:
109114
PRIV_KEY: ${{ secrets.PRIV_KEY }}
110115
PUB_KEY: ${{ secrets.PUB_KEY }}
111116
run: |
117+
su - pcr
112118
cd /home/pcr
113119
114120
# Checksum artifacts
@@ -139,3 +145,5 @@ jobs:
139145
mygit add .SRCINFO PKGBUILD
140146
mygit commit -m "Bump to $PKG_VERSION"
141147
mygit push origin master
148+
149+
exit

0 commit comments

Comments
 (0)