Skip to content

Commit 4e3905c

Browse files
authored
Merge pull request #377 from expipiplus1/vulkan-update-v1.2.210
2 parents 4f20aee + 11535c2 commit 4e3905c

File tree

103 files changed

+6154
-1908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+6154
-1908
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ jobs:
3838
if: matrix.os == 'ubuntu-20.04'
3939
run: |
4040
sudo apt-get update
41-
sudo apt-get install libvulkan-dev glslang-tools libsdl2-dev
41+
sudo apt-get install libsdl2-dev
4242
4343
- name: Install system dependencies macOS
4444
if: matrix.os == 'macOS-latest'
4545
shell: bash
4646
run: |
4747
brew install pkg-config sdl2
48-
brew tap apenngrace/homebrew-vulkan
49-
brew install --cask vulkan-sdk --verbose ||
50-
brew install --cask vulkan-sdk --verbose ||
51-
brew install --cask vulkan-sdk --verbose
5248
5349
- name: Install system dependencies Windows
5450
if: matrix.os == 'windows-latest'
@@ -61,27 +57,31 @@ jobs:
6157
printf "%s\n" "$SDL2/bin" >> "$GITHUB_PATH"
6258
printf "%s\n" "PKG_CONFIG_PATH=$SDL2/lib/pkgconfig" >> "$GITHUB_ENV"
6359
64-
choco install vulkan-sdk
65-
VulkanSDK=$(cygpath --windows --absolute /c/VulkanSDK/*/)
66-
printf "%s\n" "$VulkanSDK/Bin" >> "$GITHUB_PATH"
67-
curl -L https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-runtime-components.zip?u= > vulkan-runtime-components.zip
68-
unzip vulkan-runtime-components.zip
69-
printf "%s\n" "$(cygpath --windows --absolute VulkanRT-*/x64)" >> "$GITHUB_PATH"
70-
7160
cat >> cabal.project <<EOF
7261
package sdl2
7362
extra-lib-dirs: $SDL2/lib/
7463
extra-include-dirs: $SDL2/include/SDL2/
64+
EOF
7565
76-
package vulkan
77-
extra-lib-dirs: $VulkanSDK/Lib/
78-
79-
package vulkan-utils
80-
extra-include-dirs: $VulkanSDK/Include/
66+
- name: Prepare Vulkan SDK
67+
uses: humbletim/[email protected]
68+
with:
69+
vulkan-query-version: latest
70+
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang
71+
vulkan-use-cache: true
8172

82-
package VulkanMemoryAllocator
83-
extra-include-dirs: $VulkanSDK/Include/
73+
- name: Inform Cabal about Vulkan
74+
shell: bash
75+
run: |
76+
cat >> cabal.project <<EOF
77+
extra-lib-dirs: $VULKAN_SDK/lib/
78+
extra-include-dirs: $VULKAN_SDK/include/
8479
EOF
80+
printf "%s\n" "$VULKAN_SDK/bin" >> "$GITHUB_PATH"
81+
if uname -s | grep -i mingw; then sep=';'; else sep=':'; fi
82+
printf "%s\n" "PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+${PKG_CONFIG_PATH}${sep}}$VULKAN_SDK/lib/pkgconfig" >> "$GITHUB_ENV"
83+
# until this is fixed https://github.com/haskell/cabal/issues/7339
84+
printf "%s\n" "DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}${sep}}$VULKAN_SDK/lib" >> "$GITHUB_ENV"
8585
8686
- name: Remove openxr
8787
run: |
@@ -157,11 +157,14 @@ jobs:
157157
${{ runner.os }}-stack-global-${{ matrix.stack-args }}
158158
${{ runner.os }}-stack-global
159159
160+
- name: Set up yq
161+
uses: frenck/action-setup-yq@v1
162+
160163
- name: Install system dependencies Linux
161164
if: matrix.os == 'ubuntu-20.04'
162165
run: |
163166
sudo apt-get update
164-
sudo apt-get install libvulkan-dev glslang-tools libsdl2-dev
167+
sudo apt-get install libsdl2-dev
165168
166169
- name: Install system dependencies Windows
167170
if: matrix.os == 'windows-latest'
@@ -174,47 +177,51 @@ jobs:
174177
printf "%s\n" "$SDL2/bin" >> "$GITHUB_PATH"
175178
printf "%s\n" "PKG_CONFIG_PATH=$SDL2/lib/pkgconfig" >> "$GITHUB_ENV"
176179
177-
choco install vulkan-sdk
178-
VulkanSDK=$(cygpath --windows --absolute /c/VulkanSDK/*/)
179-
printf "%s\n" "$VulkanSDK/Bin" >> "$GITHUB_PATH"
180-
curl -L https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-runtime-components.zip?u= > vulkan-runtime-components.zip
181-
unzip vulkan-runtime-components.zip
182-
printf "%s\n" "$(cygpath --windows --absolute VulkanRT-*/x64)" >> "$GITHUB_PATH"
183-
184-
cat >> stack.yaml <<EOF
185-
extra-lib-dirs:
186-
- $SDL2/lib/
187-
- $VulkanSDK/Lib/
188-
extra-include-dirs:
189-
- $SDL2/include/SDL2/
190-
- $VulkanSDK/Include/
191-
EOF
180+
yq --inplace ".\"extra-lib-dirs\" += [\"$SDL2/lib/\"]" stack.yaml
181+
yq --inplace ".\"extra-include-dirs\" += [\"$SDL2/include/\"]" stack.yaml
192182
193183
- name: Install system dependencies macOS
194184
if: matrix.os == 'macOS-latest'
195185
shell: bash
196186
run: |
197187
brew install pkg-config sdl2
198-
brew tap apenngrace/homebrew-vulkan --verbose
199-
brew install --cask vulkan-sdk --verbose ||
200-
brew install --cask vulkan-sdk --verbose ||
201-
brew install --cask vulkan-sdk --verbose
188+
189+
- name: Prepare Vulkan SDK
190+
uses: humbletim/[email protected]
191+
with:
192+
vulkan-query-version: latest
193+
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang
194+
vulkan-use-cache: true
195+
196+
- name: Inform Stack about Vulkan
197+
shell: bash
198+
run: |
199+
yq --inplace ".\"extra-lib-dirs\" += [\"$VULKAN_SDK/lib/\"]" stack.yaml
200+
yq --inplace ".\"extra-include-dirs\" += [\"$VULKAN_SDK/include/\"]" stack.yaml
201+
printf "%s\n" "$VULKAN_SDK/bin" >> "$GITHUB_PATH"
202+
if uname -s | grep -i mingw; then sep=';'; else sep=':'; fi
203+
printf "%s\n" "PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+${PKG_CONFIG_PATH}${sep}}$VULKAN_SDK/lib/pkgconfig" >> "$GITHUB_ENV"
204+
# until this is fixed https://github.com/haskell/cabal/issues/7339
205+
printf "%s\n" "DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}${sep}}$VULKAN_SDK/lib" >> "$GITHUB_ENV"
202206
203207
- name: Remove openxr
204208
run: |
205209
sed -ibak '/openxr/d' stack.yaml
206210
207211
- name: Install dependencies
212+
shell: bash
208213
run: stack build $ARGS --test --bench --only-dependencies
209214
env:
210215
ARGS: ${{ matrix.stack-args }}
211216

212217
- name: Build
218+
shell: bash
213219
run: stack build $ARGS
214220
env:
215221
ARGS: ${{ matrix.stack-args }}
216222

217223
- name: Build documentation
224+
shell: bash
218225
run: stack haddock $ARGS
219226
env:
220227
ARGS: ${{ matrix.stack-args }}

VulkanMemoryAllocator/VulkanMemoryAllocator.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 2.2
55
-- see: https://github.com/sol/hpack
66

77
name: VulkanMemoryAllocator
8-
version: 0.9
8+
version: 0.10
99
synopsis: Bindings to the VulkanMemoryAllocator library
1010
category: Graphics
1111
homepage: https://github.com/expipiplus1/vulkan#readme
@@ -96,7 +96,7 @@ library
9696
, bytestring
9797
, transformers
9898
, vector
99-
, vulkan >=3.6 && <3.17
99+
, vulkan >=3.6 && <3.18
100100
if flag(safe-foreign-calls)
101101
cpp-options: -DSAFE_FOREIGN_CALLS
102102
if flag(vma-ndebug)

VulkanMemoryAllocator/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## WIP
44

5+
## [0.10] - 2022-03-31
6+
- Bump VMA to 3.0.0
7+
- Several breaking changes
8+
- Raise upper bound on `vulkan`
9+
510
## [0.9] - 2022-02-05
611
- Bump VMA
712
- Vulkan 1.3 support

VulkanMemoryAllocator/package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: VulkanMemoryAllocator
2-
version: "0.9"
2+
version: "0.10"
33
synopsis: Bindings to the VulkanMemoryAllocator library
44
category: Graphics
55
maintainer: Ellie Hermaszewska <[email protected]>
@@ -20,7 +20,7 @@ library:
2020
src/lib.cpp
2121
dependencies:
2222
- base <5
23-
- vulkan >= 3.6 && < 3.17
23+
- vulkan >= 3.6 && < 3.18
2424
- bytestring
2525
- transformers
2626
- vector

0 commit comments

Comments
 (0)