[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5d5054f 18/28: Use correct permissions for th
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5d5054f 18/28: Use correct permissions for the Git checkout |
Date: |
Wed, 12 May 2021 18:14:45 -0400 (EDT) |
branch: master
commit 5d5054f5d45c7f292756419ab77ee9223f16e978
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use correct permissions for the Git checkout
Actions are not affected by the custom shell command we use and still
run as root, so adjust the permissions after running actions/checkout.
---
.github/workflows/ci.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ec327ca..6352caa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -108,6 +108,12 @@ jobs:
- name: System and environment setup
run: |
+ normal_uid=`id --user`
+
+ # The checkout actions runs as root and there doesn't seem to be any
+ # way to change this, so just adjust the owner after checkout.
+ sudo chown -R $normal_uid $GITHUB_WORKSPACE
+
sudo sed -i'' -e 's/^int _putenv/_CRTIMP int _putenv/'
/usr/share/libtool/build-aux/ltmain.sh
echo "coefficiency=--jobs=`nproc`" >> $GITHUB_ENV
@@ -139,7 +145,6 @@ jobs:
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
# Create directories required by lmi.
- normal_uid=`id --user`
for d in /opt/lmi /opt/lmi/print /etc/opt/lmi /srv/cache_for_lmi; do
sudo mkdir --parents $d
sudo --preserve-env chown $normal_uid $d
- [lmi-commits] [lmi] master 0d89ef3 07/28: Install sudo without using sudo, (continued)
- [lmi-commits] [lmi] master 0d89ef3 07/28: Install sudo without using sudo, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2814dec 11/28: Check for comparison operator defaulting in configure C++ test, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master e5160fe 20/28: Revert "Add workaround for Boost.Regex compilation with clang 11", Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master d09dfce 17/28: Merge lmi directories creation step with the system setup one, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 95c9f72 08/28: Use Debian Wine version in CI job, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 4a1c735 19/28: Rename CI job and build names for brevity and consistency, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master e46db7c 21/28: Work around std::allocator::size_type problem in clang 11 libc++, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 4a09a23 09/28: Work around JRE installation problem in Debian slim container, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 21706da 25/28: Fix expression_template_0_test compilation with clang 12, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master c4a85fc 06/28: Install the required packages before checkout in the CI job, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 5d5054f 18/28: Use correct permissions for the Git checkout,
Greg Chicares <=
- [lmi-commits] [lmi] master 3a89381 24/28: Create /tmp/.X11-unix directory before running Xvfb, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 5c2b93a 23/28: Install x11-xserver-utils package to get xset, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2be5478 27/28: Preserve NUL characters in fs::path::string(), Greg Chicares, 2021/05/12