-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanups while preparing for 0.1.0 release.
- Loading branch information
Showing
5 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
echo "version is: ${{ env.FL_VERSION }}" | ||
- name: Create GitHub release | ||
id: release | ||
uses: actions/create-release@v1 | ||
uses: actions/create-release@v1.1.4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -54,12 +54,12 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@v1 | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
target: ${{ matrix.target }} | ||
|
@@ -99,10 +99,14 @@ jobs: | |
run: | | ||
outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")" | ||
staging="findlargedir-${{ needs.create-release.outputs.fl_version }}-${{ matrix.target }}" | ||
cp {README.md,LICENSE} "$staging/" | ||
mkdir -p "$staging" | ||
cp {README.md,LICENSE} "$staging" | ||
cp "target/${{ matrix.target }}/release/findlargedir" "$staging" | ||
tar -cJf "$staging.tar.xz" "$staging" | ||
echo "ASSET=$staging.tar.xz" >> $GITHUB_ENV | ||
- name: Upload release archive | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Finds Cargo's `OUT_DIR` directory from the most recent build. | ||
# | ||
# This requires one parameter corresponding to the target directory | ||
# to search for the build output. | ||
|
||
if [ $# != 1 ]; then | ||
echo "Usage: $(basename "$0") <target-dir>" >&2 | ||
exit 2 | ||
fi | ||
|
||
# This works by finding the most recent stamp file, which is produced by | ||
# every ripgrep build. | ||
target_dir="$1" | ||
find "$target_dir" -type f -name findlargedir -print0 \ | ||
| xargs -0 ls -t \ | ||
| head -n1 \ | ||
| xargs dirname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters