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: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ concurrency:

env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.85.1
RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
RELEASE_DRAFT: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.draft) || 'false' }}
RELEASE_PRERELEASE: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.prerelease) || format('{0}', contains(github.ref_name, '-')) }}
Expand All @@ -45,18 +44,22 @@ jobs:
include:
- name: Windows
os: windows-latest
rust_toolchain: stable
rust_targets: ""
args: ""
- name: Linux
os: ubuntu-22.04
rust_toolchain: 1.88.0
rust_targets: ""
args: ""
- name: macOS arm64
os: macos-latest
rust_toolchain: stable
rust_targets: aarch64-apple-darwin,x86_64-apple-darwin
args: --target aarch64-apple-darwin
- name: macOS x64
os: macos-latest
rust_toolchain: stable
rust_targets: aarch64-apple-darwin,x86_64-apple-darwin
args: --target x86_64-apple-darwin

Expand All @@ -70,7 +73,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: ${{ matrix.rust_toolchain }}
targets: ${{ matrix.rust_targets }}

- name: Install Node.js
Expand Down
6 changes: 3 additions & 3 deletions 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
Expand Up @@ -7,7 +7,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Nodasys <kevin.gregoire@nodasys.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "inspectra"
version = "0.1.1"
version = "0.1.2"
description = "Memory analysis and manipulation framework"
authors = [
{ name = "Nodasys", email = "kevin.gregoire@nodasys.com" }
Expand Down
4 changes: 4 additions & 0 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ then uploads the generated bundles to the matching GitHub Release.
## Release artifacts

The workflow is triggered by tags named `vX.Y.Z`, for example `v0.2.0`.
The Linux build intentionally uses a pinned Rust toolchain while Inspectra is on
the Tauri v1 stack, because its WebKitGTK dependency chain is sensitive to newer
Rust releases.

Expected artifacts:

Expand All @@ -31,6 +34,7 @@ node scripts/prepare-release.mjs 0.2.0
The script synchronizes the version in:

- `Cargo.toml`
- `Cargo.lock`
- `inspectra-gui/src-tauri/Cargo.toml`
- `inspectra-gui/src-tauri/tauri.conf.json`
- `inspectra-gui/package.json`
Expand Down
4 changes: 2 additions & 2 deletions inspectra-gui/package-lock.json

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

2 changes: 1 addition & 1 deletion inspectra-gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inspectra-gui",
"version": "0.1.1",
"version": "0.1.2",
"description": "Inspectra Memory Analysis Framework - GUI",
"scripts": {
"tauri": "tauri",
Expand Down
2 changes: 1 addition & 1 deletion inspectra-gui/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "inspectra-gui"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Nodasys <kevin.gregoire@nodasys.com>"]

Expand Down
2 changes: 1 addition & 1 deletion inspectra-gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Inspectra",
"version": "0.1.1"
"version": "0.1.2"
},
"tauri": {
"allowlist": {
Expand Down
18 changes: 17 additions & 1 deletion scripts/prepare-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ function writeProjectFile(path, contents) {
}

function record(path, changed) {
const existing = changes.find((entry) => entry.path === path);
if (existing) {
existing.changed = existing.changed || changed;
return;
}
changes.push({ path, changed });
}

Expand Down Expand Up @@ -88,6 +93,17 @@ replaceOnce(
"Python package version",
);

for (const packageName of ["inspectra-core", "inspectra-gui", "inspectra-python"]) {
replaceOnce(
"Cargo.lock",
new RegExp(
`(\\[\\[package\\]\\]\\r?\\nname = "${packageName}"\\r?\\nversion = ")[^"]+(")`,
),
`$1${version}$2`,
`${packageName} lockfile version`,
);
}

updateJson("inspectra-gui/src-tauri/tauri.conf.json", (data) => {
data.package.version = version;
});
Expand Down Expand Up @@ -123,7 +139,7 @@ if (unchanged.length > 0) {
}

console.log("\nNext release commands:");
console.log("git add Cargo.toml inspectra-gui bindings/python/pyproject.toml");
console.log("git add Cargo.toml Cargo.lock inspectra-gui bindings/python/pyproject.toml");
console.log(`git commit -m "Release ${tag}"`);
console.log(`git tag ${tag}`);
console.log(`git push origin main ${tag}`);
Loading