From 4b2f36e277b1a597c50afe65874258ef7101f6ed Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Thu, 25 Jan 2024 12:38:09 -0500 Subject: [PATCH] add zig shims --- .github/workflows/build-and-test-make.yml | 4 ++-- zigshim/cc | 2 ++ zigshim/cxx | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 zigshim/cc create mode 100755 zigshim/cxx diff --git a/.github/workflows/build-and-test-make.yml b/.github/workflows/build-and-test-make.yml index ac471d49..eec3b136 100644 --- a/.github/workflows/build-and-test-make.yml +++ b/.github/workflows/build-and-test-make.yml @@ -22,8 +22,8 @@ jobs: name: Cross compile runs-on: ubuntu-latest env: - CC: zig cc - CXX: zig c++ + CC: ${{ github.workspace }}/zigshim/cc + CXX: ${{ github.workspace }}/zigshim/cxx strategy: fail-fast: false matrix: diff --git a/zigshim/cc b/zigshim/cc new file mode 100755 index 00000000..a4a207fc --- /dev/null +++ b/zigshim/cc @@ -0,0 +1,2 @@ +#!/bin/bash +zig cc "$@" \ No newline at end of file diff --git a/zigshim/cxx b/zigshim/cxx new file mode 100755 index 00000000..7cc320b0 --- /dev/null +++ b/zigshim/cxx @@ -0,0 +1,2 @@ +#!/bin/bash +zig c++ "$@" \ No newline at end of file