ci: can't use the matrix strategy for determining which binary to compile and upload, so copying and pasting instead unfortunately until https://github.com/actions/runner/issues/1985 is fixed

This commit is contained in:
J / Jacob Babich
2024-10-05 19:31:29 -04:00
parent 1175fa22d6
commit a2c3013fd5

View File

@@ -9,12 +9,8 @@ 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
@@ -70,8 +66,17 @@ jobs:
- name: Build for release - name: Build for release
run: cargo build --release --verbose run: cargo build --release --verbose
- uses: taiki-e/upload-rust-binary-action@v1 # Have to do it like this because of https://github.com/actions/runner/issues/1985
- if: startsWith(github.event.release.tag_name, 'ac-qu-ai-nt-v')
uses: taiki-e/upload-rust-binary-action@v1
with: with:
bin: ${{ matrix.crate }} bin: ac-qu-ai-nt
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.supporteds.target }}
- if: startsWith(github.event.release.tag_name, 'ac-qu-ai-nt-cli-clap-v')
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: ac-qu-ai-nt-cli-clap
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.supporteds.target }} target: ${{ matrix.supporteds.target }}