Skip to content
Merged
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
15 changes: 13 additions & 2 deletions .github/workflows/release-process-daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ defaults:

env:
CARGO_TERM_COLOR: always
PROTOCOL_VERSION: 7
ZIG_VERSION: 0.16.0
GNU_GLIBC_VERSION: "2.30"
CARGO_ZIGBUILD_VERSION: 0.23.2

jobs:
checks:
runs-on: ubuntu-22.04
outputs:
protocol: ${{ steps.protocol.outputs.protocol }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # v2.0.5
Expand All @@ -45,6 +46,12 @@ jobs:
echo "$GITHUB_WORKSPACE/packages/process-daemon/script/release-bin" >> "$GITHUB_PATH"
- name: Install Rust
run: rustup toolchain install 1.90.0 --profile minimal --component clippy --component rustfmt
- name: Read protocol version
id: protocol
run: |
protocol="$(sed -nE 's/^pub const PROTOCOL_VERSION: u32 = ([0-9]+);$/\1/p' src/protocol.rs)"
test -n "$protocol"
echo "protocol=$protocol" >> "$GITHUB_OUTPUT"
- name: Validate tag
run: |
package_version="$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "opencode-pty") | .version')"
Expand Down Expand Up @@ -80,6 +87,7 @@ jobs:
target: aarch64-apple-darwin
runs-on: ${{ matrix.runner }}
env:
PROTOCOL_VERSION: ${{ needs.checks.outputs.protocol }}
MACOSX_DEPLOYMENT_TARGET: "11.0"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -165,6 +173,7 @@ jobs:
shell: pwsh
working-directory: packages/process-daemon
env:
PROTOCOL_VERSION: ${{ needs.checks.outputs.protocol }}
CARGO_BUILD_TARGET: ${{ matrix.target }}
RUSTUP_TOOLCHAIN: 1.90.0-x86_64-pc-windows-msvc
# Portable CPU for Ghostty (see build.rs) and no Visual C++ runtime dependency.
Expand Down Expand Up @@ -238,12 +247,14 @@ jobs:
if-no-files-found: error

release:
needs: [build, build-windows]
needs: [checks, build, build-windows]
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
attestations: write
env:
PROTOCOL_VERSION: ${{ needs.checks.outputs.protocol }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
Expand Down
Loading