Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 45 additions & 29 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
uses: jakoch/install-vulkan-sdk-action@v1
with:
version: 1.4.309.0
vulkan_version: 1.4.309.0
install_runtime: true
cache: true
- if: ${{ runner.os == 'Windows' }}
name: Install Vulkan Runtime with SwiftShader (Windows)
uses: NcStudios/VulkanCI@v1.2
with:
sdkVersion: 1.4.309.0
stripdown: true

# FIXME(eddyb) consider using lavapipe instead, or even trying both.
install_swiftshader: true
# install_lavapipe: true
- if: ${{ runner.os == 'Linux' }}
name: Linux - Install native dependencies
run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev
Expand Down Expand Up @@ -89,15 +90,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
uses: jakoch/install-vulkan-sdk-action@v1
with:
version: 1.4.309.0
vulkan_version: 1.4.309.0
install_runtime: true
cache: true
- if: ${{ runner.os == 'Windows' }}
name: Install Vulkan Runtime with SwiftShader (Windows)
uses: NcStudios/VulkanCI@v1.2
with:
sdkVersion: 1.4.309.0
stripdown: true

# FIXME(eddyb) consider using lavapipe instead, or even trying both.
install_swiftshader: true
# install_lavapipe: true
- name: install rust-toolchain
run: cargo version
- name: cargo fetch --locked
Expand Down Expand Up @@ -135,15 +137,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
uses: jakoch/install-vulkan-sdk-action@v1
with:
version: 1.4.309.0
vulkan_version: 1.4.309.0
install_runtime: true
cache: true
- if: ${{ runner.os == 'Windows' }}
name: Install Vulkan Runtime with SwiftShader (Windows)
uses: NcStudios/VulkanCI@v1.2
with:
sdkVersion: 1.4.309.0
stripdown: true

# FIXME(eddyb) consider using lavapipe instead, or even trying both.
install_swiftshader: true
# install_lavapipe: true
- name: install rust-toolchain
run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
- name: cargo fetch --locked
Expand All @@ -160,15 +163,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
uses: jakoch/install-vulkan-sdk-action@v1
with:
version: 1.4.309.0
vulkan_version: 1.4.309.0
install_runtime: true
cache: true
stripdown: true

# FIXME(eddyb) consider using lavapipe instead, or even trying both.
install_swiftshader: true
# install_lavapipe: true
- if: ${{ runner.os == 'Windows' }}
name: Install Vulkan Runtime with SwiftShader (Windows)
uses: NcStudios/VulkanCI@v1.2
with:
sdkVersion: 1.4.309.0
name: Windows - Use SwiftShader as Vulkan driver
# FIXME(eddyb) ideally `jakoch/install-vulkan-sdk-action` should do this.
run: |
echo "C:/Swiftshader/" >> "$GITHUB_PATH"
echo "VK_DRIVER_FILES=C:/Swiftshader/vk_swiftshader_icd.json" >> "$GITHUB_ENV"
- if: ${{ runner.os == 'Linux' }}
name: Linux - Install native dependencies
run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev
Expand Down Expand Up @@ -219,10 +229,16 @@ jobs:
- name: Install native dependencies
run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
uses: jakoch/install-vulkan-sdk-action@v1
with:
version: 1.4.309.0
vulkan_version: 1.4.309.0
install_runtime: true
cache: true
stripdown: true

# FIXME(eddyb) consider using lavapipe instead, or even trying both.
install_swiftshader: true
# install_lavapipe: true
- name: Install rustup components
run: rustup component add rustfmt clippy
# cargo version is a random command that forces the installation of rust-toolchain
Expand Down