Skip to content

Update to zig 2024.10 and Add new build options and shader inclusion overrides #1

Update to zig 2024.10 and Add new build options and shader inclusion overrides

Update to zig 2024.10 and Add new build options and shader inclusion overrides #1

Workflow file for this run

name: PR
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- "**.md"
jobs:
all:
strategy:
matrix:
target: [
'x86_64-linux-gnu',
'x86_64-linux-musl',
'aarch64-linux-gnu',
'aarch64-linux-musl',
'x86_64-windows-gnu',
'aarch64-windows-gnu',
'x86_64-macos-none',
'aarch64-macos-none',
]
optimize: [Debug, ReleaseFast]
include:
- target: 'x86_64-linux-gnu'
cpu: '-Dcpu=x86_64_v2'
- target: 'x86_64-linux-musl'
cpu: '-Dcpu=x86_64_v2'
- target: 'x86_64-windows-gnu'
cpu: '-Dcpu=x86_64_v2'
- target: 'x86_64-macos-none'
cpu: '-Dcpu=x86_64_v2'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Zig
run: |
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.14.0-dev.1710+8ee52f99c.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: build
run: zig build -Dfrom_source -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }} ${{ matrix.cpu }} install dxc
msvc:
# TODO: re-enable required MSVC builds
continue-on-error: true
strategy:
matrix:
target: [
'x86_64-windows-msvc',
# TODO: 'machine type x64 conflicts with arm64' during linking (zig bug)
# 'aarch64-windows-msvc',
]
optimize: [Debug, ReleaseFast]
include:
- target: 'x86_64-windows-msvc'
cpu: '-Dcpu=x86_64_v2'
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Zig
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://pkg.machengine.org/zig/zig-windows-x86_64-0.14.0-dev.1710+8ee52f99c.zip" -OutFile "C:\zig.zip"
cd C:\
7z x zig.zip
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.14.0-dev.1710+8ee52f99c\"
- name: build
run: zig build -Dfrom_source -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }} ${{ matrix.cpu }} install dxc