Skip to content

Update cross-windows.nix (#107) #242

Update cross-windows.nix (#107)

Update cross-windows.nix (#107) #242

Workflow file for this run

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:
status: 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:
- ghc8107
- ghc928
- ghc962
target-platform:
- ""
- "-static"
- "-js"
- "-windows"
variant:
- ""
- "-minimal"
iog:
- ""
- "-iog"
exclude:
# Just cross compiling javascript with ghc 9.6.2 for now
- compiler-nix-name: ghc8107
target-platform: "-js"
- compiler-nix-name: ghc928
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 }}
minimal: ${{ matrix.variant == '-minimal' }}
iog: ${{ matrix.iog == '-iog' }}