From 0f8925e35862601c72e9395826b81ebf545444a9 Mon Sep 17 00:00:00 2001 From: Albert Date: Tue, 25 Feb 2025 17:15:02 -0500 Subject: [PATCH] Fix Arch Linux Clang --- .github/workflows/linux_arch.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux_arch.yml b/.github/workflows/linux_arch.yml index e2003474..277a6a84 100644 --- a/.github/workflows/linux_arch.yml +++ b/.github/workflows/linux_arch.yml @@ -22,6 +22,7 @@ jobs: fail-fast: false env: ARTIFACT: webui-linux-arch-${{ matrix.cc }}-${{ matrix.arch }} + CC: ${{ matrix.cc }} steps: - name: Check out the repository uses: actions/checkout@v4 @@ -42,11 +43,16 @@ jobs: -v ${{ github.workspace }}:/workspace \ -w /workspace \ --user root \ + -e CC=${{ matrix.cc }} \ archlinux:latest \ bash -c " git config --global --add safe.directory /workspace && npm i -g esbuild && chmod +x bridge/build.sh && + if [ '${{ matrix.cc }}' == 'clang' ]; then + export AR=llvm-ar + export STRIP=llvm-strip + fi && ./bridge/build.sh && make debug && make && @@ -64,7 +70,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT }} - path: ${{ env.ARTIFACT }} + path: ${{ env.ARTIFACT}} - name: Prepare Release if: >