diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9787a69..2cc0846 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -146,3 +146,16 @@ jobs: if ($dependencies -match '(?im)^\s+(?:VCRUNTIME|MSVCP)\d*[^\s]*\.dll\s*$') { throw "Windows release dynamically depends on the Visual C++ Redistributable" } + + macos-release: + runs-on: macos-15 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v5 + - uses: dtolnay/rust-toolchain@stable + with: + targets: aarch64-apple-darwin + - run: cargo test --locked --target aarch64-apple-darwin + - run: cargo build --release --locked --target aarch64-apple-darwin + - name: Verify standalone macOS executable + run: target/aarch64-apple-darwin/release/browser-cli version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ac7d2e..2770531 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: build-macos: needs: validate-version - runs-on: macos-14 + runs-on: macos-15 environment: macos-release steps: - uses: actions/checkout@v5 diff --git a/Cargo.lock b/Cargo.lock index c83b99f..e19a602 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1240,7 +1240,7 @@ checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760" [[package]] name = "lexmount-browser" -version = "1.4.0" +version = "1.5.0" dependencies = [ "base64 0.22.1", "clap", diff --git a/Cargo.toml b/Cargo.toml index bc7e7b1..565e7b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lexmount-browser" -version = "1.4.0" +version = "1.5.0" edition = "2024" license = "MIT" description = "Native Rust SDK and CLI for Lexmount cloud browsers" diff --git a/README.md b/README.md index 386b5fa..d65b205 100644 --- a/README.md +++ b/README.md @@ -150,8 +150,8 @@ automatic action retries. These changes require a new CLI release; published Explicit page selection is introduced in version 1.2.0. Check that the installed binary's `browser-cli action --help` lists `--target-id`; the published 1.1.15 binary does not have it. The package version and both bootstrap scripts target -1.4.0 together. Merging or building this source does not publish release assets: -bootstrap can install 1.4.0 only after its binaries and checksums are published +1.5.0 together. Merging or building this source does not publish release assets: +bootstrap can install 1.5.0 only after its binaries and checksums are published to COS. Until then, use a source build for local verification. Every `action` command accepts an optional `--target-id`. Obtain the page's CDP @@ -263,7 +263,7 @@ overwrite an existing release with changed binaries. `skills/lexmount-browser/scripts/bootstrap.ps1` and `bootstrap.sh`. 2. Run `.github/scripts/test-release-version.ps1` with Windows PowerShell 5.1 or PowerShell 7, then `.github/scripts/verify-release-version.ps1 -ReleaseTag - v1.4.0` (substitute the intended version). Complete CI and merge the PR. + v1.5.0` (substitute the intended version). Complete CI and merge the PR. 3. Create the matching tag **on that merged commit**. Typing a new tag or release title in GitHub does not update any source version. The release workflow rejects inconsistent versions before building, signing or uploading. diff --git a/skills/lexmount-browser/scripts/bootstrap.ps1 b/skills/lexmount-browser/scripts/bootstrap.ps1 index 5a42335..4faa251 100644 --- a/skills/lexmount-browser/scripts/bootstrap.ps1 +++ b/skills/lexmount-browser/scripts/bootstrap.ps1 @@ -12,7 +12,7 @@ function Invoke-Tls12Download { } } -$version = if ($env:LEXMOUNT_BROWSER_CLI_VERSION) { $env:LEXMOUNT_BROWSER_CLI_VERSION } else { "1.4.0" } +$version = if ($env:LEXMOUNT_BROWSER_CLI_VERSION) { $env:LEXMOUNT_BROWSER_CLI_VERSION } else { "1.5.0" } $downloadBaseUrl = if ($env:LEXMOUNT_BROWSER_CLI_DOWNLOAD_BASE_URL) { $env:LEXMOUNT_BROWSER_CLI_DOWNLOAD_BASE_URL.TrimEnd('/') } else { "https://cli-bin-1377899528.cos.ap-nanjing.myqcloud.com/releases/browser-cli" } $architecture = if ($env:PROCESSOR_ARCHITEW6432) { $env:PROCESSOR_ARCHITEW6432 } else { $env:PROCESSOR_ARCHITECTURE } if ($architecture -ne "AMD64") { throw "Only Windows x64 is supported" } diff --git a/skills/lexmount-browser/scripts/bootstrap.sh b/skills/lexmount-browser/scripts/bootstrap.sh index 195e25d..c04377c 100755 --- a/skills/lexmount-browser/scripts/bootstrap.sh +++ b/skills/lexmount-browser/scripts/bootstrap.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -version="${LEXMOUNT_BROWSER_CLI_VERSION:-1.4.0}" +version="${LEXMOUNT_BROWSER_CLI_VERSION:-1.5.0}" download_base_url="${LEXMOUNT_BROWSER_CLI_DOWNLOAD_BASE_URL:-https://cli-bin-1377899528.cos.ap-nanjing.myqcloud.com/releases/browser-cli}" repo="${download_base_url%/}/v${version}" case "$(uname -s)-$(uname -m)" in diff --git a/tests/linux_bootstrap.py b/tests/linux_bootstrap.py index 9206149..52c3eba 100755 --- a/tests/linux_bootstrap.py +++ b/tests/linux_bootstrap.py @@ -8,7 +8,7 @@ (fake/'curl').write_text('''#!/bin/sh while [ "$#" -gt 0 ]; do case "$1" in https:*) url="$1";; -o) shift; output="$1";; esac; shift; done case "$url" in - *SHA256SUMS) printf '%s %s\\n' "$(openssl dgst -sha256 "$FIXTURE" | awk '{print $NF}')" 'browser-cli-v1.4.0-x86_64-unknown-linux-musl' > "$output";; + *SHA256SUMS) printf '%s %s\\n' "$(openssl dgst -sha256 "$FIXTURE" | awk '{print $NF}')" 'browser-cli-v1.5.0-x86_64-unknown-linux-musl' > "$output";; *x86_64-unknown-linux-musl) cp "$FIXTURE" "$output";; *) exit 9;; esac