Add the tool plans to as hydraJobs (#172) #295
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prebuild DevX closures | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
wait-for-hydra-eval: | |
env: | |
HYDRA_JOB: ci/eval | |
GH_TOKEN: ${{ github.token }} | |
name: "Wait for hydra status" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: input-output-hk/actions/wait-for-hydra@latest | |
with: | |
check: ci/hydra-build:required | |
upload: | |
needs: wait-for-hydra-eval | |
name: Container Upload | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- x86_64-darwin | |
- x86_64-linux | |
- aarch64-darwin | |
# Currently broken | |
#- aarch64-linux | |
compiler-nix-name: | |
- ghc810 | |
- ghc92 | |
- ghc96 | |
- ghc98 | |
- ghc910 | |
target-platform: | |
- "" | |
- "-static" | |
- "-js" | |
- "-windows" | |
variant: | |
- "" | |
- "-minimal" | |
iog: | |
- "" | |
- "-iog" | |
- "-iog-full" | |
exclude: | |
# Just cross compiling javascript with ghc 9.6.2 for now | |
- compiler-nix-name: ghc810 | |
target-platform: "-js" | |
- compiler-nix-name: ghc92 | |
target-platform: "-js" | |
# Static builds not working for darwin yet | |
- platform: x86_64-darwin | |
target-platform: "-static" | |
# Static tools not working right now (so just building "-static-minimal" for now) | |
- target-platform: "-static" | |
variant: "" | |
# Windows cross compilation only works on x86_64-linux right now. | |
- platform: aarch64-darwin | |
target-platform: "-windows" | |
- platform: aarch64-linux | |
target-platform: "-windows" | |
- platform: x86_64-darwin | |
target-platform: "-windows" | |
# It does not makes sense to build minimal image that include IOG extra tooling ... | |
# ... "-minimal" and "-iog" are mutually exclusive options! | |
- variant: "-minimal" | |
iog: "-iog" | |
# On darwin the `-js` target require `-minimal` to be set: | |
- target-platform: "-js" | |
platform: aarch64-darwin | |
variant: "" | |
- target-platform: "-js" | |
platform: x86_64-darwin | |
variant: "" | |
uses: ./.github/workflows/wait-and-upload.yml | |
with: | |
platform: ${{ matrix.platform }} | |
target-platform: ${{ matrix.target-platform }} | |
compiler-nix-name: ${{ matrix.compiler-nix-name }} | |
variant: ${{ matrix.variant }} | |
iog: ${{ matrix.iog }} |