diff --git a/.github/actions/cargo-binstall-cbindgen/action.yml b/.github/actions/cargo-binstall-cbindgen/action.yml index 0eb0f8f5d..303f1a7f4 100644 --- a/.github/actions/cargo-binstall-cbindgen/action.yml +++ b/.github/actions/cargo-binstall-cbindgen/action.yml @@ -9,7 +9,7 @@ runs: - name: Install cbindgen shell: bash run: | - case "$OS" in + case "$RUNNER_OS" in Windows) cargo install cbindgen --version ${{ inputs.version }};; macOS | Linux ) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 3a7a08355..5913ad583 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -231,7 +231,7 @@ jobs: - name: Rename the binary shell: bash run: | - case "$OS" in + case "$RUNNER_OS" in Windows) exe_suffix=.exe;; Linux | macOS) exe_suffix=;; esac