;ci:binaries: cleanups, notes

This commit is contained in:
Simon Michael 2025-05-29 13:39:13 -10:00
parent 4587eccdf4
commit c63d85c81f
5 changed files with 20 additions and 15 deletions

View File

@ -25,6 +25,7 @@ jobs:
# caching # caching
# XXX Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
- name: Cache - stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2 - name: Cache - stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2
id: stack-programs-dir id: stack-programs-dir
uses: actions/cache@v4 uses: actions/cache@v4

View File

@ -34,6 +34,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-ghcup ${{ runner.os }}-ghcup
# XXX Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
- name: Cache - ~/.cabal - name: Cache - ~/.cabal
id: cabal id: cabal
uses: actions/cache@v4 uses: actions/cache@v4
@ -102,7 +103,8 @@ jobs:
# upload-artifact loses execute permissions, so we tar the binaries to preserve them. # upload-artifact loses execute permissions, so we tar the binaries to preserve them.
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar. # github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
# Unfortunately it means users must both unzip and untar. # https://github.com/actions/upload-artifact?tab=readme-ov-file#limitations
# In release workflows, we repack these using the platform's native compression scheme.
- name: Upload binaries - name: Upload binaries
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -120,7 +120,7 @@ jobs:
- name: Install shelltestrunner - name: Install shelltestrunner
run: | run: |
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
if [[ ! -x ~/.local/bin/shelltest ]]; then $stack install shelltestrunner-1.10; fi if [[ ! -x ~/.local/bin/shelltest ]]; then $stack install --verbosity=error shelltestrunner; fi
shelltest --version shelltest --version
- name: Test functional tests (excluding addons) - name: Test functional tests (excluding addons)
@ -162,8 +162,8 @@ jobs:
# upload-artifact loses execute permissions, so we tar the binaries to preserve them. # upload-artifact loses execute permissions, so we tar the binaries to preserve them.
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar. # github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
# Unfortunately it means users must both unzip and untar.
# https://github.com/actions/upload-artifact?tab=readme-ov-file#limitations # https://github.com/actions/upload-artifact?tab=readme-ov-file#limitations
# In release workflows, we repack these using the platform's native compression scheme.
- name: Upload binaries artifact - name: Upload binaries artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -120,7 +120,7 @@ jobs:
- name: Install shelltestrunner - name: Install shelltestrunner
run: | run: |
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
if [[ ! -x ~/.local/bin/shelltest ]]; then $stack install shelltestrunner-1.10; fi if [[ ! -x ~/.local/bin/shelltest ]]; then $stack install --verbosity=error shelltestrunner; fi
shelltest --version shelltest --version
- name: Test functional tests (excluding addons) - name: Test functional tests (excluding addons)
@ -153,7 +153,8 @@ jobs:
# upload-artifact loses execute permissions, so we tar the binaries to preserve them. # upload-artifact loses execute permissions, so we tar the binaries to preserve them.
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar. # github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
# Unfortunately it means users must both unzip and untar. # https://github.com/actions/upload-artifact?tab=readme-ov-file#limitations
# In release workflows, we repack these using the platform's native compression scheme.
- name: Upload binaries artifact - name: Upload binaries artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -25,16 +25,17 @@ jobs:
# caching # caching
- name: Cache - stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2 # Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
id: stack-programs-dir # - name: Cache - stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2
uses: actions/cache@v4 # id: stack-programs-dir
with: # uses: actions/cache@v4
path: C:\Users\runneradmin\AppData\Local\Programs\stack\ # with:
# which files signal a change in stack's global db ? # path: C:\Users\runneradmin\AppData\Local\Programs\stack\
# **.yaml includes */package.yaml and stack.yaml* (too many), and hopefully no other changing yamls # # which files signal a change in stack's global db ?
key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }} # # **.yaml includes */package.yaml and stack.yaml* (too many), and hopefully no other changing yamls
restore-keys: | # key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }}
${{ runner.os }}-appdata-local-programs-stack # restore-keys: |
# ${{ runner.os }}-appdata-local-programs-stack
- name: Cache - stack global dir - name: Cache - stack global dir
id: stack-global-package-db id: stack-global-package-db