Skip to content

Commit f6a71f0

Browse files
committed
Set $TARGET_FLAGS and $TARGET_DIR even without cross
This adds that step from the revised ripgrep workflow, moving the commands into it. The new step is the same as in ripgrep except: - Without `shell: bash`, because we set that for the whole job and do so on all operating systems. - With a different quoting convention. The related change of taking the executables from the specific target directory has already been made. This is part of what is needed to make that actually work.
1 parent a4b5cb9 commit f6a71f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ jobs:
145145
run: |
146146
cargo install cross
147147
echo 'CARGO=cross' >> "$GITHUB_ENV"
148+
149+
- name: Set target variables
150+
run: |
148151
echo 'TARGET_FLAGS=--target ${{ matrix.target }}' >> "$GITHUB_ENV"
149152
echo 'TARGET_DIR=./target/${{ matrix.target }}' >> "$GITHUB_ENV"
150153

0 commit comments

Comments
 (0)