From 880a43754763f847621a127811e2d5ff998257c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=E5=B0=8F=E9=80=8F=E6=98=8E=E3=83=BB=E5=AE=B8?= =?UTF-8?q?=E2=9C=A8?= <47057319+TransparentLC@users.noreply.github.com> Date: Thu, 9 Jan 2025 00:02:45 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eee6038..c48d558 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,8 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Prepare OpenCL SDK shell: bash + env: + GH_TOKEN: ${{ github.token }} run: | if [[ "$RUNNER_OS" == "Windows" ]]; then VERSION=$(gh release view --repo KhronosGroup/OpenCL-SDK --json tagName --jq .tagName) @@ -38,10 +40,10 @@ jobs: # # fi - name: Build - shell: bash id: build + shell: bash run: | - cargo build --release + RUSTFLAGS="--remap-path-prefix $HOME=~" cargo build --release if [[ "$RUNNER_OS" == "Windows" ]]; then echo "executable=target/release/opencl_vanity_gpg.exe" >> $GITHUB_OUTPUT else