Skip to content

Commit

Permalink
change project name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkarw committed Dec 5, 2023
1 parent ca8ec90 commit 3111e5f
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/bin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
# needs: ['create-release']
runs-on: ${{ matrix.os }}
env:
PROJECT_NAME: buffrs
# For some builds, we use cross to test on 32-bit and big-endian
# systems.
CARGO: cargo
Expand Down Expand Up @@ -157,9 +158,9 @@ jobs:
run: |
${{ env.CARGO }} build --verbose --release
if [ "${{ matrix.os }}" = "windows-latest" ]; then
bin="target/${{ matrix.target }}/release/rg.exe"
bin="target/${{ matrix.target }}/release/${{ env.PROJECT_NAME }}.exe"
else
bin="target/${{ matrix.target }}/release/rg"
bin="target/${{ matrix.target }}/release/${{ env.PROJECT_NAME }}"
fi
echo "BIN=$bin" >> $GITHUB_ENV
Expand All @@ -176,7 +177,7 @@ jobs:
"$PWD/target:/target:Z" \
"rustembedded/cross:${{ matrix.target }}" \
"${{ matrix.strip }}" \
"/target/${{ matrix.target }}/release/rg"
"/target/${{ matrix.target }}/release/${{ env.PROJECT_NAME }}"
- name: Determine archive name
shell: bash
Expand All @@ -198,11 +199,11 @@ jobs:
# shell: bash
# run: |
# "$BIN" --version
# "$BIN" --generate complete-bash > "$ARCHIVE/complete/rg.bash"
# "$BIN" --generate complete-fish > "$ARCHIVE/complete/rg.fish"
# "$BIN" --generate complete-powershell > "$ARCHIVE/complete/_rg.ps1"
# "$BIN" --generate complete-zsh > "$ARCHIVE/complete/_rg"
# "$BIN" --generate man > "$ARCHIVE/doc/rg.1"
# "$BIN" --generate complete-bash > "$ARCHIVE/complete/${{ env.PROJECT_NAME }}.bash"
# "$BIN" --generate complete-fish > "$ARCHIVE/complete/${{ env.PROJECT_NAME }}.fish"
# "$BIN" --generate complete-powershell > "$ARCHIVE/complete/_${{ env.PROJECT_NAME }}.ps1"
# "$BIN" --generate complete-zsh > "$ARCHIVE/complete/_${{ env.PROJECT_NAME }}"
# "$BIN" --generate man > "$ARCHIVE/doc/${{ env.PROJECT_NAME }}.1"

# - name: Generate man page and completions (emulation)
# if: matrix.qemu != ''
Expand All @@ -216,27 +217,27 @@ jobs:
# "$PWD/target:/target:Z" \
# "rustembedded/cross:${{ matrix.target }}" \
# "${{ matrix.qemu }}" "/$BIN" \
# --generate complete-bash > "$ARCHIVE/complete/rg.bash"
# --generate complete-bash > "$ARCHIVE/complete/${{ env.PROJECT_NAME }}.bash"
# docker run --rm -v \
# "$PWD/target:/target:Z" \
# "rustembedded/cross:${{ matrix.target }}" \
# "${{ matrix.qemu }}" "/$BIN" \
# --generate complete-fish > "$ARCHIVE/complete/rg.fish"
# --generate complete-fish > "$ARCHIVE/complete/${{ env.PROJECT_NAME }}.fish"
# docker run --rm -v \
# "$PWD/target:/target:Z" \
# "rustembedded/cross:${{ matrix.target }}" \
# "${{ matrix.qemu }}" "/$BIN" \
# --generate complete-powershell > "$ARCHIVE/complete/_rg.ps1"
# --generate complete-powershell > "$ARCHIVE/complete/_${{ env.PROJECT_NAME }}.ps1"
# docker run --rm -v \
# "$PWD/target:/target:Z" \
# "rustembedded/cross:${{ matrix.target }}" \
# "${{ matrix.qemu }}" "/$BIN" \
# --generate complete-zsh > "$ARCHIVE/complete/_rg"
# --generate complete-zsh > "$ARCHIVE/complete/_${{ env.PROJECT_NAME }}"
# docker run --rm -v \
# "$PWD/target:/target:Z" \
# "rustembedded/cross:${{ matrix.target }}" \
# "${{ matrix.qemu }}" "/$BIN" \
# --generate man > "$ARCHIVE/doc/rg.1"
# --generate man > "$ARCHIVE/doc/${{ env.PROJECT_NAME }}.1"

- name: Build archive (Windows)
shell: bash
Expand Down Expand Up @@ -302,7 +303,7 @@ jobs:
shell: bash
run: |
cargo build --target ${{ env.TARGET }}
bin="target/${{ env.TARGET }}/debug/rg"
bin="target/${{ env.TARGET }}/debug/${{ env.PROJECT_NAME }}"
echo "BIN=$bin" >> $GITHUB_ENV
- name: Create deployment directory
Expand All @@ -315,14 +316,14 @@ jobs:
- name: Generate man page
shell: bash
run: |
"$BIN" --generate man > "$DEPLOY_DIR/rg.1"
"$BIN" --generate man > "$DEPLOY_DIR/${{ env.PROJECT_NAME }}.1"
- name: Generate shell completions
shell: bash
run: |
"$BIN" --generate complete-bash > "$DEPLOY_DIR/rg.bash"
"$BIN" --generate complete-fish > "$DEPLOY_DIR/rg.fish"
"$BIN" --generate complete-zsh > "$DEPLOY_DIR/_rg"
"$BIN" --generate complete-bash > "$DEPLOY_DIR/${{ env.PROJECT_NAME }}.bash"
"$BIN" --generate complete-fish > "$DEPLOY_DIR/${{ env.PROJECT_NAME }}.fish"
"$BIN" --generate complete-zsh > "$DEPLOY_DIR/_${{ env.PROJECT_NAME }}"
- name: Build release binary
shell: bash
Expand Down

0 comments on commit 3111e5f

Please sign in to comment.