From 28ba36681e65a5018d1f908f891cadbb87a25b64 Mon Sep 17 00:00:00 2001 From: MyNameIsTrez Date: Thu, 13 Mar 2025 19:22:24 +0100 Subject: [PATCH 1/2] Add a basic build.yml --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a7ac38f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: CI Build + +on: push + +jobs: + build-tests: + name: tests + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Print curl version + run: curl --version + + - name: Print wget version + run: wget --version + + - name: Download Zig + run: wget https://ziglang.org/download/0.12.0/zig-windows-x86_64-0.12.0.zip + + - name: Run the tests + run: zig test -freference-trace src/main.zig From a2bf0aefb2b948bd11d3702cf616a2cefc799f0b Mon Sep 17 00:00:00 2001 From: MyNameIsTrez Date: Thu, 13 Mar 2025 19:38:50 +0100 Subject: [PATCH 2/2] Fix build.yml commands --- .github/workflows/build.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7ac38f..c933e75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,14 +10,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Print curl version - run: curl --version + - name: Download Zig 0.12.0 + run: curl -LO https://ziglang.org/download/0.12.0/zig-windows-x86_64-0.12.0.zip - - name: Print wget version - run: wget --version - - - name: Download Zig - run: wget https://ziglang.org/download/0.12.0/zig-windows-x86_64-0.12.0.zip + - name: Unzip Zig + run: tar -xf zig-windows-x86_64-0.12.0.zip - name: Run the tests - run: zig test -freference-trace src/main.zig + run: zig-windows-x86_64-0.12.0\zig.exe test -freference-trace src/main.zig