|
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 | + version="${{ matrix.version }}" |
| 34 | + for deb in debian_10_tools debian_11_tools debian_12_tools ; do |
| 35 | + 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" |
| 36 | + done |
| 37 | +
|
23 | 38 | build-linux: |
24 | 39 | name: Build linux binaries |
25 | 40 | runs-on: ubuntu-latest |
| 41 | + needs: ["tool-output"] |
26 | 42 | env: |
27 | 43 | TARBALL_EXT: tar.xz |
28 | 44 | ARCH: 64 |
29 | 45 | strategy: |
30 | 46 | fail-fast: false |
31 | 47 | matrix: |
32 | | - platform: [ { image: "debian:12" |
| 48 | + platform: [ { image: "debian:10" |
33 | 49 | , 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" |
| 50 | + , toolRequirements: ${{ needs.tool-output.outputs.debian_10_tools }} |
35 | 51 | , DISTRO: "Debian" |
36 | 52 | , ARTIFACT: "x86_64-linux-deb10" |
37 | 53 | , ADD_CABAL_ARGS: "--enable-split-sections" |
38 | 54 | }, |
39 | 55 | { image: "debian:11" |
40 | 56 | , 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" |
| 57 | + , toolRequirements: ${{ needs.tool-output.outputs.debian_11_tools }} |
42 | 58 | , DISTRO: "Debian" |
43 | 59 | , ARTIFACT: "x86_64-linux-deb11" |
44 | 60 | , ADD_CABAL_ARGS: "--enable-split-sections" |
45 | 61 | }, |
46 | 62 | { image: "debian:12" |
47 | 63 | , 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" |
| 64 | + , toolRequirements: ${{ needs.tool-output.outputs.debian_12_tools }} |
49 | 65 | , DISTRO: "Debian" |
50 | 66 | , ARTIFACT: "x86_64-linux-deb12" |
51 | 67 | , ADD_CABAL_ARGS: "--enable-split-sections" |
@@ -423,23 +439,23 @@ jobs: |
423 | 439 | strategy: |
424 | 440 | fail-fast: false |
425 | 441 | matrix: |
426 | | - platform: [ { image: "debian:12" |
| 442 | + platform: [ { image: "debian:10" |
427 | 443 | , 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" |
| 444 | + , toolRequirements: ${{ needs.tool-output.outputs.debian_10_tools }} |
429 | 445 | , DISTRO: "Debian" |
430 | 446 | , ARTIFACT: "x86_64-linux-deb10" |
431 | 447 | , ADD_CABAL_ARGS: "--enable-split-sections" |
432 | 448 | }, |
433 | 449 | { image: "debian:11" |
434 | 450 | , 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" |
| 451 | + , toolRequirements: ${{ needs.tool-output.outputs.debian_11_tools }} |
436 | 452 | , DISTRO: "Debian" |
437 | 453 | , ARTIFACT: "x86_64-linux-deb11" |
438 | 454 | , ADD_CABAL_ARGS: "--enable-split-sections" |
439 | 455 | }, |
440 | 456 | { image: "debian:12" |
441 | 457 | , 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" |
| 458 | + , toolRequirements: ${{ needs.tool-output.outputs.debian_12_tools }} |
443 | 459 | , DISTRO: "Debian" |
444 | 460 | , ARTIFACT: "x86_64-linux-deb12" |
445 | 461 | , ADD_CABAL_ARGS: "--enable-split-sections" |
|
0 commit comments