Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/org-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,22 @@ jobs:
esac
git clone "${clone_args[@]}" "$url" "$dest"
done < <(jq -c '.[]' <<<"$CHECKOUTS_JSON")
- name: Prepare Nix build users
run: |
set -euo pipefail
getent group nixbld >/dev/null || groupadd --system nixbld
for index in $(seq 1 32); do
user="nixbld${index}"
if ! getent passwd "$user" >/dev/null; then
useradd --system --no-create-home --home-dir /var/empty \
--shell /usr/sbin/nologin --gid nixbld --groups nixbld "$user"
fi
done
- name: Run command
if: ${{ matrix.mode == 'single' }}
env:
ORG_RUN_COMMAND: ${{ matrix.command }}
NIX_CONFIG: "extra-experimental-features = nix-command flakes"
run: |
git config --global --add safe.directory '*'
cd "$GITHUB_WORKSPACE/target"
Expand All @@ -408,6 +420,7 @@ jobs:
env:
CHECKOUTS_JSON: ${{ toJSON(matrix.checkouts) }}
ORG_RUN_COMMAND: ${{ matrix.command }}
NIX_CONFIG: "extra-experimental-features = nix-command flakes"
run: |
git config --global --add safe.directory '*'
cd "$GITHUB_WORKSPACE"
Expand Down