mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-09 14:30:37 +00:00
CI: fix release pipeline as well
This commit is contained in:
parent
91c44e6c92
commit
6c6b7824ce
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
|||||||
# Apparently, this is the right way to get a tag name. Really?
|
# Apparently, this is the right way to get a tag name. Really?
|
||||||
#
|
#
|
||||||
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
|
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
|
||||||
echo "::set-env name=RG_VERSION::${GITHUB_REF#refs/tags/}"
|
echo "RG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
echo "version is: ${{ env.RG_VERSION }}"
|
echo "version is: ${{ env.RG_VERSION }}"
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
@ -126,12 +126,10 @@ jobs:
|
|||||||
- name: Use Cross
|
- name: Use Cross
|
||||||
# if: matrix.os != 'windows-2019'
|
# if: matrix.os != 'windows-2019'
|
||||||
run: |
|
run: |
|
||||||
# FIXME: to work around bugs in latest cross release, install master.
|
cargo install cross
|
||||||
# See: https://github.com/rust-embedded/cross/issues/357
|
echo "CARGO=cross" >> $GITHUB_ENV
|
||||||
cargo install --git https://github.com/rust-embedded/cross
|
echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
|
||||||
echo "::set-env name=CARGO::cross"
|
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
|
||||||
echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}"
|
|
||||||
echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}"
|
|
||||||
|
|
||||||
- name: Show command used for Cargo
|
- name: Show command used for Cargo
|
||||||
run: |
|
run: |
|
||||||
@ -148,11 +146,9 @@ jobs:
|
|||||||
- name: Set release upload URL and release version
|
- name: Set release upload URL and release version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
release_upload_url="$(cat artifacts/release-upload-url)"
|
echo "RELEASE_UPLOAD_URL=$(cat artifacts/release-upload-url)" >> $GITHUB_ENV
|
||||||
echo "::set-env name=RELEASE_UPLOAD_URL::$release_upload_url"
|
|
||||||
echo "release upload url: $RELEASE_UPLOAD_URL"
|
echo "release upload url: $RELEASE_UPLOAD_URL"
|
||||||
release_version="$(cat artifacts/release-version)"
|
echo "RELEASE_VERSION=$(cat artifacts/release-version)" >> $GITHUB_ENV
|
||||||
echo "::set-env name=RELEASE_VERSION::$release_version"
|
|
||||||
echo "release version: $RELEASE_VERSION"
|
echo "release version: $RELEASE_VERSION"
|
||||||
|
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
@ -186,12 +182,12 @@ jobs:
|
|||||||
cp "target/${{ matrix.target }}/release/rga.exe" "$staging/"
|
cp "target/${{ matrix.target }}/release/rga.exe" "$staging/"
|
||||||
cp "target/${{ matrix.target }}/release/rga-preproc.exe" "$staging/"
|
cp "target/${{ matrix.target }}/release/rga-preproc.exe" "$staging/"
|
||||||
7z a "$staging.zip" "$staging"
|
7z a "$staging.zip" "$staging"
|
||||||
echo "::set-env name=ASSET::$staging.zip"
|
echo "ASSET=$staging.zip" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
cp "target/${{ matrix.target }}/release/rga" "$staging/"
|
cp "target/${{ matrix.target }}/release/rga" "$staging/"
|
||||||
cp "target/${{ matrix.target }}/release/rga-preproc" "$staging/"
|
cp "target/${{ matrix.target }}/release/rga-preproc" "$staging/"
|
||||||
tar czf "$staging.tar.gz" "$staging"
|
tar czf "$staging.tar.gz" "$staging"
|
||||||
echo "::set-env name=ASSET::$staging.tar.gz"
|
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload release archive
|
- name: Upload release archive
|
||||||
|
Loading…
Reference in New Issue
Block a user