diff options
author | Martin Nordholts <enselic@gmail.com> | 2021-01-11 18:40:08 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-01-11 22:18:49 +0100 |
commit | e402011a735561157b304180810c38bce68f0326 (patch) | |
tree | 6abdf7bcec73d8b2d4f48b14295c9bf4e9c4aa81 /.github | |
parent | dc1620d1f0e44ddaefda6bb74899a60160df6de6 (diff) |
CICD: Build: Split out dir creation into the individual package steps
It's cleaner because we can reuse helper vars and create the dirs closer
in time to when they are needed.
For #1474
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CICD.yml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 37faf246..5c805c37 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -156,13 +156,6 @@ jobs: # * executable for `strip`? STRIP="strip" ; case ${{ matrix.job.target }} in arm-unknown-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;; aarch64-unknown-linux-gnu) STRIP="aarch64-linux-gnu-strip" ;; *-pc-windows-msvc) STRIP="" ;; esac; echo ::set-output name=STRIP::${STRIP} - - name: Create all needed build/work directories - shell: bash - run: | - mkdir -p '${{ steps.vars.outputs.STAGING }}' - mkdir -p '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}' - mkdir -p '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/autocomplete' - mkdir -p '${{ steps.vars.outputs.STAGING }}/dpkg' - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -231,6 +224,9 @@ jobs: shell: bash run: | ARCHIVE_DIR='${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/' + mkdir -p "${ARCHIVE_DIR}" + mkdir -p "${ARCHIVE_DIR}/autocomplete" + # Binary cp 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "$ARCHIVE_DIR" @@ -260,6 +256,7 @@ jobs: run: | COPYRIGHT_YEARS="2018 - "$(date "+%Y") DPKG_DIR="${{ steps.vars.outputs.STAGING }}/dpkg" + mkdir -p "${DPKG_DIR}" # Binary install -Dm755 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "${DPKG_DIR}/usr/bin/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}" |