From e259fe75f6c8bfe9313ae49a8b8a88c3a3a2efe0 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 28 May 2025 14:20:09 -1000 Subject: [PATCH] ;ci:binaries-windows-arm64: note limitation, disable for now --- ...-arm64.yml => _binaries-windows-arm64.yml} | 42 ++----------------- 1 file changed, 4 insertions(+), 38 deletions(-) rename .github/workflows/{binaries-windows-arm64.yml => _binaries-windows-arm64.yml} (77%) diff --git a/.github/workflows/binaries-windows-arm64.yml b/.github/workflows/_binaries-windows-arm64.yml similarity index 77% rename from .github/workflows/binaries-windows-arm64.yml rename to .github/workflows/_binaries-windows-arm64.yml index 1b6878509..a70622f0a 100644 --- a/.github/workflows/binaries-windows-arm64.yml +++ b/.github/workflows/_binaries-windows-arm64.yml @@ -1,10 +1,13 @@ # TRIGGER: Runs on any push to binaries-windows-arm64 or binaries branches. # ACTION: Builds, unit-tests and saves windows arm64 binaries with stack and the default ghc. +# XXX There's no windows ARM version of stack yet; the preinstalled stack, +# the one installed by ghcup, and the one installed by stack's installer are all x86_64. +# So currently this workflow just builds x86_64 hledger binaries, and is pointless. name: binaries-windows-arm64 on: push: - branches: [ binaries-windows-arm64, binaries ] + branches: [ binaries-windows-arm64 ] # binaries workflow_dispatch: jobs: build: @@ -82,38 +85,6 @@ jobs: restore-keys: | ${{ runner.os }}-hledger-web-stack-work - # - name: showStuff - # run: | - # ls -lFRa /c/users/runneradmin/appdata/roaming/stack - # ls -lFRa /c/users/runneradmin/appdata/local/programs/stack - - # actions: - - # - name: Add stack local bin to PATH - # run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin" - - # - name: Install stack - # run: | - # mkdir -p ~/.local/bin - # export PATH=~/.local/bin:$PATH - # if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi - # $stack --version - # env: - # stack: ${{ matrix.plan.stack }} - - # - name: Install stack - # #if: steps.stack-programs-dir.outputs.cache-hit != 'true' - # # this step is needed to get stack.exe into PATH, for now - # # NB, no windows ARM binary for stack yet; the x86_64 one works, and builds x86_64 hledger binaries - # run: | - # curl -sL https://get.haskellstack.org/stable/windows-x86_64.zip -o stack.zip - # 7z x stack.zip stack.exe - # which stack - # printf "stack: "; stack --version - # which ./stack - # printf "./stack: "; ./stack --version - - # use preinstalled stack - name: Check preinstalled stack version run: | which stack @@ -130,11 +101,6 @@ jobs: stack build --test --only-dependencies --dry-run stack build --test --only-dependencies - # XXX ghc-pkg not in path - # - name: List dep versions - # run: | - # $stack exec -- ghc-pkg list - - name: Build all hledger modules warning free, optimised and minimised run: | stack install --test --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror