update-debian-*-packages steps can now go in parallel.

We should copy the source directory at the beginning of each step into a
temporary directory, so the build steps can go in parallel without
conflicts while accessing the same files.
This commit is contained in:
Fabio Manganiello 2023-09-18 21:15:48 +02:00
parent 9aad1a2c58
commit 1f2e5b1e7a
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -272,6 +272,12 @@ steps:
- apt install -y dpkg-dev gpg git python3 python3-pip - apt install -y dpkg-dev gpg git python3 python3-pip
- pip install awscli --break-system-packages - pip install awscli --break-system-packages
- echo "-- Copying source directory"
- mkdir -p "$WORKDIR"
- export SRCDIR="$WORKDIR/src"
- cp -r "$PWD" "$SRCDIR"
- cd "$SRCDIR"
- echo "--- Parsing metadata" - echo "--- Parsing metadata"
- git config --global --add safe.directory $PWD - git config --global --add safe.directory $PWD
- git pull --rebase origin master --tags - git pull --rebase origin master --tags
@ -326,9 +332,14 @@ steps:
depends_on: depends_on:
- build-ui - build-ui
- update-debian-stable-packages
commands: commands:
- echo "-- Copying source directory"
- mkdir -p "$WORKDIR"
- export SRCDIR="$WORKDIR/src"
- cp -r "$PWD" "$SRCDIR"
- cd "$SRCDIR"
- echo "-- Installing dependencies" - echo "-- Installing dependencies"
- apt update - apt update
- apt install -y dpkg-dev gpg git python3 python3-pip - apt install -y dpkg-dev gpg git python3 python3-pip
@ -401,6 +412,7 @@ steps:
depends_on: depends_on:
- update-arch-packages - update-arch-packages
- update-debian-stable-packages
- update-debian-oldstable-packages - update-debian-oldstable-packages
commands: commands: