Skip to content

Build

Build #11

Workflow file for this run

name: Build
on:
workflow_dispatch:
jobs:
Build:
strategy:
matrix:
include:
- name: Windows
os: windows-2022
generator: "Visual Studio 17 2022"
options: -Thost=x64
artifactUploadName: "swiftshader-windows-x64"
artifactLocation: "build_out/Windows/"
- name: Linux
os: ubuntu-22.04
generator: "Unix Makefiles"
env: "CXX=/usr/bin/g++-13"
options: "-DCMAKE_BUILD_TYPE=Release"
artifactUploadName: "swiftshader-ubuntu22.04-x64"
artifactLocation: "build_out/Linux/"
- name: Mac
os: macos-13
generator: "Xcode"
options: "-DCMAKE_BUILD_TYPE=Release"
artifactUploadName: "swiftshader-macOS-x64"
artifactLocation: "build_out/Darwin/"
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup MSVC
if: matrix.name == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Configure
run: ${{ matrix.env }} cmake -G "${{ matrix.generator }}" -S ./ -B build_out ${{ matrix.options }} -DSWIFTSHADER_ENABLE_VULKAN_DEBUGGER=1
- name: Build
run: cmake --build build_out --target vk_swiftshader --config Release --parallel 4
- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifactUploadName }}
path: ${{ matrix.artifactLocation }}