Skip to content

Commit 482a2fd

Browse files
committed
ci(release): remove check bin
1 parent eaa6b13 commit 482a2fd

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -70,45 +70,8 @@ jobs:
7070
prerelease: false
7171
generate_release_notes: true
7272

73-
check-if-bin:
74-
runs-on: ubuntu-latest
75-
steps:
76-
- name: Fetch Repository
77-
uses: actions/checkout@v4
78-
79-
- name: Run sccache-cache
80-
uses: mozilla-actions/sccache-action@v0.0.6
81-
env:
82-
SCCACHE_GHA_ENABLED: "true"
83-
RUSTC_WRAPPER: "sccache"
84-
85-
- name: Install Stable Rust Toolchain
86-
uses: dtolnay/rust-toolchain@master
87-
with:
88-
toolchain: stable
89-
90-
- name: Install jql
91-
uses: taiki-e/install-action@v2
92-
with:
93-
tool: jql
94-
95-
- name: Searching for bin
96-
id: searching
97-
run: |
98-
result=$(cargo metadata --format-version=1 --no-deps | jql '"packages"|>"targets"<|[1]|>"kind"' | jql '..' -i);
99-
echo "targets=$result" >> "$GITHUB_OUTPUT";
100-
echo kind of targets "$result";
101-
102-
- name: print if skip upploading binaries to github release
103-
if: ${{ !contains(steps.searching.outputs.targets, 'bin') }}
104-
run: echo "This job avoid publishing binaries to github releases for libraries crates"
105-
106-
outputs:
107-
is_bin: ${{ contains(steps.searching.outputs.targets, 'bin') }}
108-
10973
build:
110-
needs: [create-release, check-if-bin]
111-
if: ${{ needs.check-if-bin.outputs.is_bin == 'true' }}
74+
needs: [create-release]
11275
strategy:
11376
fail-fast: false
11477
matrix:

0 commit comments

Comments
 (0)