ci: remove zip dependency for windows (#509)

Removes the zip dependency for nightly and deploy actions.
This commit is contained in:
Clement Tsang
2021-06-21 19:56:59 -04:00
committed by GitHub
parent a3660bd27e
commit fcfd02a3f9
2 changed files with 21 additions and 24 deletions
+3 -8
View File
@@ -175,12 +175,6 @@ jobs:
# shell: powershell
# run: export PATH=${PATH}:"/c/Program Files (x86)/WiX Toolset v3.11/bin"
- name: Install zip (Windows)
if: matrix.triple.os == 'windows-2019'
uses: crazy-max/ghaction-chocolatey@v1.4.0
with:
args: install -y zip
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
@@ -213,7 +207,8 @@ jobs:
shell: bash
run: |
cp target/${{ matrix.triple.target }}/release/btm.exe btm.exe
zip -r bottom_${{ matrix.triple.target }}.zip "btm.exe" "completion"
7z a bottom_${{ matrix.triple.target }}.zip "btm.exe"
7z a bottom_${{ matrix.triple.target }}.zip "completion"
echo "ASSET=bottom_${{ matrix.triple.target }}.zip" >> $GITHUB_ENV
- name: Bundle release and completion (Linux and macOS)
@@ -392,7 +387,7 @@ jobs:
tar -C ./completion -czvf completion.tar.gz .
- name: Release completion files (Linux x86-64 GNU)
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == '' && github.event.inputs.isMock == ''
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}