|
20 | 20 | TZ: Asia/Singapore |
21 | 21 |
|
22 | 22 | jobs: |
| 23 | + tool-output: |
| 24 | + runs-on: ubuntu-latest |
| 25 | + outputs: |
| 26 | + debian_10_tools: ${{ steps.gen_output.outputs.debian_10_tools }} |
| 27 | + debian_11_tools: ${{ steps.gen_output.outputs.debian_11_tools }} |
| 28 | + debian_12_tools: ${{ steps.gen_output.outputs.debian_12_tools }} |
| 29 | + steps: |
| 30 | + - name: Generate output |
| 31 | + id: gen_output |
| 32 | + run: | |
| 33 | + for deb in debian_10_tools debian_11_tools debian_12_tools ; do echo ${deb}="groff-base libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" >> "$GITHUB_OUTPUT" ; done |
| 34 | +
|
23 | 35 | build-linux: |
24 | 36 | name: Build linux binaries |
25 | 37 | runs-on: ubuntu-latest |
| 38 | + needs: ["tool-output"] |
26 | 39 | env: |
27 | 40 | TARBALL_EXT: tar.xz |
28 | 41 | ARCH: 64 |
29 | 42 | strategy: |
30 | 43 | fail-fast: false |
31 | 44 | matrix: |
32 | | - platform: [ { image: "debian:12" |
| 45 | + platform: [ { image: "debian:10" |
33 | 46 | , installCmd: "apt-get update && apt-get install -y" |
34 | | - , toolRequirements: "libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" |
| 47 | + , toolRequirements: "${{ needs.tool-output.outputs.debian_10_tools }}" |
35 | 48 | , DISTRO: "Debian" |
36 | 49 | , ARTIFACT: "x86_64-linux-deb10" |
37 | 50 | , ADD_CABAL_ARGS: "--enable-split-sections" |
38 | 51 | }, |
39 | 52 | { image: "debian:11" |
40 | 53 | , installCmd: "apt-get update && apt-get install -y" |
41 | | - , toolRequirements: "libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" |
| 54 | + , toolRequirements: "${{ needs.tool-output.outputs.debian_11_tools }}" |
42 | 55 | , DISTRO: "Debian" |
43 | 56 | , ARTIFACT: "x86_64-linux-deb11" |
44 | 57 | , ADD_CABAL_ARGS: "--enable-split-sections" |
45 | 58 | }, |
46 | 59 | { image: "debian:12" |
47 | 60 | , installCmd: "apt-get update && apt-get install -y" |
48 | | - , toolRequirements: "libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" |
| 61 | + , toolRequirements: "${{ needs.tool-output.outputs.debian_12_tools }}" |
49 | 62 | , DISTRO: "Debian" |
50 | 63 | , ARTIFACT: "x86_64-linux-deb12" |
51 | 64 | , ADD_CABAL_ARGS: "--enable-split-sections" |
@@ -423,23 +436,23 @@ jobs: |
423 | 436 | strategy: |
424 | 437 | fail-fast: false |
425 | 438 | matrix: |
426 | | - platform: [ { image: "debian:12" |
| 439 | + platform: [ { image: "debian:10" |
427 | 440 | , installCmd: "apt-get update && apt-get install -y" |
428 | | - , toolRequirements: "groff-base libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" |
| 441 | + , toolRequirements: "${{ needs.tool-output.outputs.debian_10_tools }}" |
429 | 442 | , DISTRO: "Debian" |
430 | 443 | , ARTIFACT: "x86_64-linux-deb10" |
431 | 444 | , ADD_CABAL_ARGS: "--enable-split-sections" |
432 | 445 | }, |
433 | 446 | { image: "debian:11" |
434 | 447 | , installCmd: "apt-get update && apt-get install -y" |
435 | | - , toolRequirements: "groff-base libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" |
| 448 | + , toolRequirements: "${{ needs.tool-output.outputs.debian_11_tools }}" |
436 | 449 | , DISTRO: "Debian" |
437 | 450 | , ARTIFACT: "x86_64-linux-deb11" |
438 | 451 | , ADD_CABAL_ARGS: "--enable-split-sections" |
439 | 452 | }, |
440 | 453 | { image: "debian:12" |
441 | 454 | , installCmd: "apt-get update && apt-get install -y" |
442 | | - , toolRequirements: "groff-base libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf" |
| 455 | + , toolRequirements: "${{ needs.tool-output.outputs.debian_12_tools }}" |
443 | 456 | , DISTRO: "Debian" |
444 | 457 | , ARTIFACT: "x86_64-linux-deb12" |
445 | 458 | , ADD_CABAL_ARGS: "--enable-split-sections" |
|
0 commit comments