ci: only compile for releases for the relevant crate

This commit is contained in:
J / Jacob Babich
2024-10-05 02:28:19 -04:00
parent 1854dc429c
commit f37d56edba

View File

@@ -9,8 +9,12 @@ on:
jobs: jobs:
compile-and-publish: compile-and-publish:
if: startsWith(github.event.release.tag_name, format("{0}-v", matrix.crate))
strategy: strategy:
matrix: matrix:
crate:
- ac-qu-ai-nt
- ac-qu-ai-nt-cli-clap
supporteds: supporteds:
- runner: macos-latest - runner: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
@@ -68,6 +72,6 @@ jobs:
- uses: taiki-e/upload-rust-binary-action@v1 - uses: taiki-e/upload-rust-binary-action@v1
with: with:
bin: ac-qu-ai-nt bin: ${{ matrix.crate }}
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.supporteds.target }} target: ${{ matrix.supporteds.target }}