Skip to content

Commit

Permalink
Fix arch build
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi authored Mar 8, 2021
1 parent af67f64 commit 289cf3e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/actions/build-arch/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
#!/bin/bash

set -e

cd linux

# Create user "docker" because makepkg refuses to run as root.
id docker || (echo creating user docker; useradd docker)
chown -R docker:docker .

# Reset PKGEXT to it's default (it's different in the build-container)
PKGEXT=".pkg.tar.xz" su docker -c makepkg
# Set PKGDEST to a location where user "docker" can write.
export PKGDEST="."
# Reset PKGEXT to it's default (it's different in the build-container).
export PKGEXT=".pkg.tar.xz"

ls -lah
# Build package.
su docker -c makepkg

# Check result and prepare for uploading.
ls -lah
pkgname=$(ls *.pkg.tar*)
mv $pkgname ../$pkgname
echo ::set-output name=filename::$pkgname
echo ::set-output name=filename::$pkgname

0 comments on commit 289cf3e

Please sign in to comment.