Skip to content

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

fix(build): update `cross` GitHub Actions to `v1` and enable `strip`

Elijah Potter3f40d1ef8fd9
diff --git a/.github/workflows/build_harper_binaries.yml b/.github/workflows/build_harper_binaries.yml
index 98d82dde3..675dcc792 100644
--- a/.github/workflows/build_harper_binaries.yml
+++ b/.github/workflows/build_harper_binaries.yml
@@ -90,12 +90,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
- uses: houseabsolute/actions-rust-cross@v0
+ uses: houseabsolute/actions-rust-cross@v1
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release --bin ${{ matrix.platform.project }}"
force-use-cross: true
+ strip: true
- name: Package as archive
shell: bash
run: |
diff --git a/.github/workflows/package_vscode_plugin.yml b/.github/workflows/package_vscode_plugin.yml
index 1b7e1560e..d4b1cacde 100644
--- a/.github/workflows/package_vscode_plugin.yml
+++ b/.github/workflows/package_vscode_plugin.yml
@@ -36,11 +36,12 @@ jobs:
with:
node-version-file: ".node-version"
- name: Build harper-ls
- uses: houseabsolute/actions-rust-cross@v0
+ uses: houseabsolute/actions-rust-cross@v1
with:
target: ${{ matrix.platform.rust_target }}
args: "--locked --release --bin harper-ls"
force-use-cross: true
+ strip: true
- name: Package extension
shell: bash
run: |
diff --git a/.github/workflows/release_harper_binaries.yml b/.github/workflows/release_harper_binaries.yml
index 0fc466e70..50242effa 100644
--- a/.github/workflows/release_harper_binaries.yml
+++ b/.github/workflows/release_harper_binaries.yml
@@ -89,12 +89,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
- uses: houseabsolute/actions-rust-cross@v0
+ uses: houseabsolute/actions-rust-cross@v1
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release --bin ${{ matrix.platform.project }}"
force-use-cross: true
+ strip: true
- name: Package as archive
shell: bash
run: |
diff --git a/.github/workflows/release_vscode_plugin.yml b/.github/workflows/release_vscode_plugin.yml
index be2ecdc52..39fa34ec0 100644
--- a/.github/workflows/release_vscode_plugin.yml
+++ b/.github/workflows/release_vscode_plugin.yml
@@ -35,11 +35,12 @@ jobs:
with:
node-version-file: ".node-version"
- name: Build harper-ls
- uses: houseabsolute/actions-rust-cross@v0
+ uses: houseabsolute/actions-rust-cross@v1
with:
target: ${{ matrix.platform.rust_target }}
args: "--locked --release --bin harper-ls"
force-use-cross: true
+ strip: true
- name: Package extension
id: package_extension
shell: bash