From f811e5b926f2121c727d425e693da754ce178ea0 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Sun, 28 Apr 2024 10:49:43 +0200 Subject: [PATCH 1/2] ci: format check --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b02e69..2c2fc47 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,9 +20,11 @@ jobs: with: version: master + - name: Check formatting + run: zig fmt --check . + - name: Test - run: | - zig build test + run: zig build test - name: Fetch latest Vulkan SDK run: | @@ -32,12 +34,10 @@ jobs: sudo apt install shaderc libglfw3 libglfw3-dev - name: Fetch latest vk.xml - run: | - wget https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/main/xml/vk.xml + run: wget https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/main/xml/vk.xml - name: Build with latest zig & vk.xml - run: | - zig build -Dexample-registry=./vk.xml + run: zig build -Dexample-registry=./vk.xml - name: Archive vk.zig uses: actions/upload-artifact@v2 From 82ca63bce85e46032727121e6aabfebfa5805837 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Sun, 28 Apr 2024 10:56:23 +0200 Subject: [PATCH 2/2] ci: update step versions --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c2fc47..305c961 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Zig - uses: goto-bus-stop/setup-zig@v2.0.1 + uses: goto-bus-stop/setup-zig@v2 with: version: master @@ -40,7 +40,8 @@ jobs: run: zig build -Dexample-registry=./vk.xml - name: Archive vk.zig - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: vk.zig path: zig-out/src/vk.zig + if-no-files-found: error