]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ci: (s390x/qemu-user) speed up build preparation
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 25 Apr 2023 06:27:12 +0000 (08:27 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Apr 2023 09:57:11 +0000 (11:57 +0200)
By configuring the build action properly the setup steps can be cached,
speeding up the build.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
.github/workflows/cibuild.yml

index 8cfa6e0c6dd0325ec85e593308bae398f71f9264..419599644b31cf5b2d6ebc9c9e0320e3e7c74fad 100644 (file)
@@ -111,14 +111,16 @@ jobs:
         with:
           arch: s390x
           distro: ubuntu_latest
-          run: |
-            export COMPILER=gcc
-            export COMPILER_VERSION=10
-            export SANITIZE=no
-            export QEMU_USER=1
-
+          githubToken: "${{ github.token }}"
+          env: |
+            COMPILER: gcc
+            COMPILER_VERSION: 10
+            SANITIZE: no
+            QEMU_USER: 1
+          install: |
             # name: Ubuntu setup
             .github/workflows/cibuild-setup-ubuntu.sh
+          run: |
             git config --global --add safe.directory "$PWD"
             # Configure & Make
             .github/workflows/cibuild.sh CONFIGURE MAKE