Skip to content

Commit f99437f

Browse files
authored
Update CI haskell-actions/setup (#569)
* Update CI haskell-actions/setup * Drop minor version on actions/cache * Bump humbletim/setup-vulkan-sdk * Request more sdk components * Fix shellcheck * Create /usr/local/lib before ln * Remove a clutch * Force system GHC * Bump stackage lts to match latest 9.6 minor * Bump installed ghc to match lts * Exclude macos builds for older GHCs
1 parent d4c4cc7 commit f99437f

4 files changed

Lines changed: 27 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@ jobs:
1414
matrix:
1515
ghc: ['8.10', '9.0', '9.2']
1616
os: [ubuntu-latest, macOS-latest, windows-latest]
17+
exclude:
18+
- os: macOS-latest
19+
ghc: '8.10'
20+
- os: macOS-latest
21+
ghc: '9.0'
1722
fail-fast: false
1823

1924
steps:
2025
- uses: actions/checkout@v4
2126
with:
2227
submodules: 'recursive'
23-
- uses: haskell/actions/setup@v2
28+
- uses: haskell-actions/setup@v2
2429
id: setup-haskell
2530
with:
2631
ghc-version: ${{ matrix.ghc }}
2732

28-
- uses: actions/cache@v4.0.2
33+
- uses: actions/cache@v4
2934
with:
3035
path: |
3136
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
@@ -67,18 +72,20 @@ jobs:
6772
EOF
6873
6974
- name: Prepare Vulkan SDK
70-
uses: humbletim/setup-vulkan-sdk@v1.2.0
75+
uses: humbletim/setup-vulkan-sdk@v1.2.1
7176
with:
7277
vulkan-query-version: latest
73-
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang
78+
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Cross, SPIRV-Tools, SPIRV-Reflect, SPIRV-Headers
7479
vulkan-use-cache: true
7580

7681
- name: Make libvulkan.1.dylib available on OSX
7782
if: matrix.os == 'macOS-latest'
7883
shell: bash
7984
run: |
8085
file $VULKAN_SDK/lib/libvulkan.1.dylib
81-
ln -s $VULKAN_SDK/lib/libvulkan.1.dylib /usr/local/lib/libvulkan.1.dylib
86+
ls -la /usr/local/ /usr/local/lib/ || true
87+
mkdir -p /usr/local/lib/ || true
88+
ln -s $VULKAN_SDK/lib/libvulkan.1.dylib /usr/local/lib/libvulkan.1.dylib || true
8289
8390
- name: Inform Cabal about Vulkan
8491
shell: bash
@@ -90,8 +97,6 @@ jobs:
9097
printf "%s\n" "$VULKAN_SDK/bin" >> "$GITHUB_PATH"
9198
if uname -s | grep -i mingw; then sep=';'; else sep=':'; fi
9299
printf "%s\n" "PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+${PKG_CONFIG_PATH}${sep}}$VULKAN_SDK/lib/pkgconfig" >> "$GITHUB_ENV"
93-
# until this is fixed https://github.com/haskell/cabal/issues/7339
94-
printf "%s\n" "DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}${sep}}$VULKAN_SDK/lib" >> "$GITHUB_ENV"
95100
96101
- name: Remove openxr
97102
run: |
@@ -150,14 +155,14 @@ jobs:
150155
- uses: actions/checkout@v4
151156
with:
152157
submodules: 'recursive'
153-
- uses: haskell/actions/setup@v2
158+
- uses: haskell-actions/setup@v2
154159
with:
155160
stack-version: 'latest'
156161
enable-stack: true
157-
ghc-version: '8.10'
162+
ghc-version: '9.6.7'
158163

159164
- name: Cache stack things
160-
uses: actions/cache@v4.0.2
165+
uses: actions/cache@v4
161166
with:
162167
path: |
163168
~/.stack
@@ -201,10 +206,10 @@ jobs:
201206
brew install pkg-config sdl2
202207
203208
- name: Prepare Vulkan SDK
204-
uses: humbletim/setup-vulkan-sdk@v1.2.0
209+
uses: humbletim/setup-vulkan-sdk@v1.2.1
205210
with:
206211
vulkan-query-version: latest
207-
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang
212+
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Cross, SPIRV-Tools, SPIRV-Reflect, SPIRV-Headers
208213
vulkan-use-cache: true
209214

210215
- name: Inform Stack about Vulkan

scripts/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ while [[ "$#" -gt 0 ]]; do
3333
shift
3434
done
3535

36-
if [ $help ]; then
36+
if [ "$help" ]; then
3737
me=$(basename "$0")
3838
cat <<EOF
3939
$me: Create releases for the tags on HEAD. Fails when there are no relevant
@@ -72,7 +72,7 @@ declare -a tagMap
7272
for i in "${tags[@]}"; do
7373
for r in "${!tagNames[@]}"; do
7474
if [[ "$i" =~ ${tagNames[$r]} ]]; then
75-
tagMap[$r]=$i
75+
tagMap[r]=$i
7676
fi
7777
done
7878
done

scripts/update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ while [[ "$#" -gt 0 ]]; do
2828
shift
2929
done
3030

31-
if [ $help ]; then
31+
if [ "$help" ]; then
3232
me=$(basename "$0")
3333
cat <<EOF
3434
$me: Update Vulkan-Docs and regenerate source
@@ -58,7 +58,7 @@ git -C generate-new/Vulkan-Docs fetch --tags
5858

5959
if git -C generate-new/Vulkan-Docs describe --tags | grep "$version"; then
6060
echo "Vulkan-Docs is already at $version"
61-
if ! [ $force ]; then
61+
if ! [ "$force" ]; then
6262
exit 0
6363
fi
6464
fi

stack.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-22.42
1+
resolver: lts-22.44
22
packages:
33
- .
44
- utils
@@ -9,13 +9,15 @@ extra-deps:
99
# - autoapply-0.4.1.1
1010
- git: https://github.com/dpwiz/autoapply.git
1111
commit: 640ed1a689484fc307e1bab7c06db1027b28c87c
12-
- unification-fd-0.12.0
12+
- unification-fd-0.12.0.2
1313
- derive-storable-0.3.1.0
1414
- derive-storable-plugin-0.2.3.7
1515

16+
# use ghcup, nix, setup actions
17+
system-ghc: true
18+
install-ghc: false
19+
1620
allow-newer: true
17-
allow-newer-deps:
18-
- unification-fd
1921

2022
nix:
2123
enable: false

0 commit comments

Comments
 (0)