Skip to content

Commit 433928b

Browse files
committed
simplify: remove binary build artifacts from release workflow
- Remove build-release job as kode-bridge is a library crate, not a binary - Remove cross-platform binary builds and artifact uploads - Streamline release workflow to focus on crate publication - Keep quality checks and GitHub release creation - Resolves 'kode-bridge: Cannot stat' error from missing binary
1 parent 1d442f2 commit 433928b

File tree

1 file changed

+2
-66
lines changed

1 file changed

+2
-66
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -37,68 +37,10 @@ jobs:
3737
- name: Build release
3838
run: make build
3939

40-
# Build release artifacts for different platforms
41-
build-release:
42-
name: Build Release Artifacts
43-
needs: pre-release-checks
44-
runs-on: ${{ matrix.os }}
45-
strategy:
46-
matrix:
47-
include:
48-
- os: ubuntu-latest
49-
target: x86_64-unknown-linux-gnu
50-
name: linux-x86_64
51-
- os: windows-latest
52-
target: x86_64-pc-windows-msvc
53-
name: windows-x86_64
54-
- os: macos-latest
55-
target: x86_64-apple-darwin
56-
name: macos-x86_64
57-
- os: macos-latest
58-
target: aarch64-apple-darwin
59-
name: macos-aarch64
60-
61-
steps:
62-
- uses: actions/checkout@v4
63-
64-
- name: Install Rust
65-
uses: dtolnay/rust-toolchain@master
66-
with:
67-
toolchain: 1.87.0
68-
targets: ${{ matrix.target }}
69-
70-
- name: Cache dependencies
71-
uses: actions/cache@v4
72-
with:
73-
path: |
74-
~/.cargo/registry
75-
~/.cargo/git
76-
target
77-
key: ${{ runner.os }}-${{ matrix.target }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
78-
79-
- name: Build release binary
80-
run: cargo build --release --target ${{ matrix.target }} --all-features
81-
82-
- name: Create release archive
83-
shell: bash
84-
run: |
85-
cd target/${{ matrix.target }}/release
86-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
87-
7z a ../../../kode-bridge-${{ matrix.name }}.zip kode-bridge.exe
88-
else
89-
tar czvf ../../../kode-bridge-${{ matrix.name }}.tar.gz kode-bridge
90-
fi
91-
92-
- name: Upload release archive
93-
uses: actions/upload-artifact@v4
94-
with:
95-
name: kode-bridge-${{ matrix.name }}
96-
path: kode-bridge-${{ matrix.name }}.*
97-
9840
# Publish to crates.io
9941
publish-crate:
10042
name: Publish to crates.io
101-
needs: [pre-release-checks, build-release]
43+
needs: pre-release-checks
10244
runs-on: ubuntu-latest
10345
steps:
10446
- uses: actions/checkout@v4
@@ -128,18 +70,13 @@ jobs:
12870
# Create GitHub release
12971
github-release:
13072
name: Create GitHub Release
131-
needs: [pre-release-checks, build-release, publish-crate]
73+
needs: [pre-release-checks, publish-crate]
13274
runs-on: ubuntu-latest
13375
steps:
13476
- uses: actions/checkout@v4
13577
with:
13678
fetch-depth: 0
13779

138-
- name: Download all release artifacts
139-
uses: actions/download-artifact@v4
140-
with:
141-
path: artifacts
142-
14380
- name: Get tag name
14481
id: tag
14582
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
@@ -186,7 +123,6 @@ jobs:
186123
body_path: release_notes.md
187124
draft: false
188125
prerelease: ${{ contains(steps.tag.outputs.tag, '-') }}
189-
files: artifacts/*/*
190126
token: ${{ secrets.GITHUB_TOKEN }}
191127

192128
- name: Update cargo installation instructions

0 commit comments

Comments
 (0)