Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
binary_name: corgea
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
binary_name: corgea
- os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
binary_name: corgea
Expand All @@ -41,6 +44,10 @@ jobs:
with:
ref: ${{ inputs.tag || github.ref }}

- name: Install musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt-get install -y musl-tools

- name: Install Rust Target
run: rustup target add ${{ matrix.target }}

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "corgea"
version = "1.8.2"
version = "1.8.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
12 changes: 7 additions & 5 deletions scripts/npm/bundle-binaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const path = require("node:path");
const { unzipSync } = require("fflate");

const TARGETS = [
{ triple: "x86_64-unknown-linux-gnu", binary: "corgea" },
{ triple: "x86_64-unknown-linux-musl", binary: "corgea" },
{ triple: "aarch64-unknown-linux-gnu", binary: "corgea" },
{ triple: "x86_64-apple-darwin", binary: "corgea" },
{ triple: "aarch64-apple-darwin", binary: "corgea" },
{ triple: "x86_64-pc-windows-msvc", binary: "corgea.exe" },
{ triple: "x86_64-apple-darwin", binary: "corgea" },
{ triple: "aarch64-apple-darwin", binary: "corgea" },
{ triple: "x86_64-pc-windows-msvc", binary: "corgea.exe" },
];

function fail(message) {
Expand Down Expand Up @@ -43,7 +43,9 @@ for (const { triple, binary } of TARGETS) {
const zipBuffer = fs.readFileSync(archivePath);
const entries = unzipSync(new Uint8Array(zipBuffer));

const entry = Object.entries(entries).find(([name]) => path.basename(name) === binary);
const entry = Object.entries(entries).find(
([name]) => path.basename(name) === binary,
);
if (!entry) {
fail(`binary "${binary}" not found inside ${archiveName}`);
}
Expand Down
Loading