Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(build): only force `cross` on Linux hosts

Elijah Potterb3f2587a6a5d
diff --git a/.github/workflows/build_harper_binaries.yml b/.github/workflows/build_harper_binaries.yml
index 675dcc792..f4732f806 100644
--- a/.github/workflows/build_harper_binaries.yml
+++ b/.github/workflows/build_harper_binaries.yml
@@ -95,7 +95,7 @@ jobs:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release --bin ${{ matrix.platform.project }}"
- force-use-cross: true
+ force-use-cross: ${{ matrix.platform.os == 'ubuntu-latest' }}
strip: true
- name: Package as archive
shell: bash
diff --git a/.github/workflows/package_vscode_plugin.yml b/.github/workflows/package_vscode_plugin.yml
index d4b1cacde..85c085d20 100644
--- a/.github/workflows/package_vscode_plugin.yml
+++ b/.github/workflows/package_vscode_plugin.yml
@@ -40,7 +40,7 @@ jobs:
with:
target: ${{ matrix.platform.rust_target }}
args: "--locked --release --bin harper-ls"
- force-use-cross: true
+ force-use-cross: ${{ matrix.platform.os == 'ubuntu-latest' }}
strip: true
- name: Package extension
shell: bash
diff --git a/.github/workflows/release_harper_binaries.yml b/.github/workflows/release_harper_binaries.yml
index 50242effa..b2762b50d 100644
--- a/.github/workflows/release_harper_binaries.yml
+++ b/.github/workflows/release_harper_binaries.yml
@@ -94,7 +94,7 @@ jobs:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release --bin ${{ matrix.platform.project }}"
- force-use-cross: true
+ force-use-cross: ${{ matrix.platform.os == 'ubuntu-latest' }}
strip: true
- name: Package as archive
shell: bash
diff --git a/.github/workflows/release_vscode_plugin.yml b/.github/workflows/release_vscode_plugin.yml
index 39fa34ec0..bdc9167da 100644
--- a/.github/workflows/release_vscode_plugin.yml
+++ b/.github/workflows/release_vscode_plugin.yml
@@ -39,7 +39,7 @@ jobs:
with:
target: ${{ matrix.platform.rust_target }}
args: "--locked --release --bin harper-ls"
- force-use-cross: true
+ force-use-cross: ${{ matrix.platform.os == 'ubuntu-latest' }}
strip: true
- name: Package extension
id: package_extension