Skip to content

Commit

Permalink
ci: build artifacts workflow to accept a tag
Browse files Browse the repository at this point in the history
Running from the tag on the workflow itself doesn't necessarily work here because it will use an
older process, which doesn't help if you want to build binaries that were not part of that old
process.
  • Loading branch information
jacderida committed Jul 4, 2024
1 parent 9d9214f commit fc9db61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
type: string
required: true
default: main
tag:
description: The tag to build.
type: string
required: false

# Copied from `release.yml`
# During the build step, the env variable has to be manually sent to the containers for cross platform builds.
Expand Down Expand Up @@ -43,7 +47,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
ref: ${{ inputs.tag || inputs.branch }}
- uses: dtolnay/rust-toolchain@stable
# cargo-binstall will try and use pre-built binaries if they are available and also speeds up
# installing `cross`
Expand Down
12 changes: 0 additions & 12 deletions test.sh

This file was deleted.

0 comments on commit fc9db61

Please sign in to comment.