Skip to content
Myr

Merge pull request #1157 from miles170/ci-migrate-set-output

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by GitHub · parents c859290, 8d1c363 · Browse files · 1 file+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • CI: migrate deprecating set-output commands

Diff stats

1 file+8 added−8 removed

  • other:+8 added−8 removed

1 file+8 added−8 removed

modified:.github/workflows/CICD.yml+8 added-8 removed
160 unmodified lines
161 "${STRIP}" "${BIN_PATH}"162 fi163164 # Let subsequent steps know where to find the (stripped) bin165 echo ::set-output name=BIN_PATH::${BIN_PATH}166 echo ::set-output name=BIN_NAME::${BIN_NAME}165 echo "BIN_PATH=${BIN_PATH}" >> $GITHUB_OUTPUT166 echo "BIN_NAME=${BIN_NAME}" >> $GITHUB_OUTPUT167168 - name: Set testing options169 id: test-options170 shell: bash171 run: |172 # test only library unit tests and binary for arm-type targets173 unset CARGO_TEST_OPTIONS174 unset CARGO_TEST_OPTIONS ; case ${{ matrix.job.target }} in arm-* | aarch64-*) CARGO_TEST_OPTIONS="--bin ${PROJECT_NAME}" ;; esac;175 echo ::set-output name=CARGO_TEST_OPTIONS::${CARGO_TEST_OPTIONS}175 echo "CARGO_TEST_OPTIONS=${CARGO_TEST_OPTIONS}" >> $GITHUB_OUTPUT176177 - name: Run tests178 uses: actions-rs/cargo@v1179 with:
12 unmodified lines
192 run: |193 PKG_suffix=".tar.gz" ; case ${{ matrix.job.target }} in *-pc-windows-*) PKG_suffix=".zip" ;; esac;194 PKG_BASENAME=${PROJECT_NAME}-v${PROJECT_VERSION}-${{ matrix.job.target }}195 PKG_NAME=${PKG_BASENAME}${PKG_suffix}196 echo ::set-output name=PKG_NAME::${PKG_NAME}196 echo "PKG_NAME=${PKG_NAME}" >> $GITHUB_OUTPUT197198 PKG_STAGING="${{ env.CICD_INTERMEDIATES_DIR }}/package"199 ARCHIVE_DIR="${PKG_STAGING}/${PKG_BASENAME}/"200 mkdir -p "${ARCHIVE_DIR}"
18 unmodified lines
219 esac;220 popd >/dev/null221222 # Let subsequent steps know where to find the compressed package223 echo ::set-output name=PKG_PATH::"${PKG_STAGING}/${PKG_NAME}"223 echo "PKG_PATH=${PKG_STAGING}/${PKG_NAME}" >> $GITHUB_OUTPUT224225 - name: Create Debian package226 id: debian-package227 shell: bash
18 unmodified lines
246 *) DPKG_ARCH=notset ;;247 esac;248249 DPKG_NAME="${DPKG_BASENAME}_${DPKG_VERSION}_${DPKG_ARCH}.deb"250 echo ::set-output name=DPKG_NAME::${DPKG_NAME}250 echo "DPKG_NAME=${DPKG_NAME}" >> $GITHUB_OUTPUT251252 # Binary253 install -Dm755 "${{ steps.strip.outputs.BIN_PATH }}" "${DPKG_DIR}/usr/bin/${{ steps.strip.outputs.BIN_NAME }}"254
73 unmodified lines
328 sensible (opinionated) defaults for a majority of use cases.329 EOF330331 DPKG_PATH="${DPKG_STAGING}/${DPKG_NAME}"332 echo ::set-output name=DPKG_PATH::${DPKG_PATH}332 echo "DPKG_PATH=${DPKG_PATH}" >> $GITHUB_OUTPUT333334 # build dpkg335 fakeroot dpkg-deb --build "${DPKG_DIR}" "${DPKG_PATH}"336
14 unmodified lines
351 id: is-release352 shell: bash353 run: |354 unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi355 echo ::set-output name=IS_RELEASE::${IS_RELEASE}355 echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT356357 - name: Publish archives and packages358 uses: softprops/action-gh-release@v1359 if: steps.is-release.outputs.IS_RELEASE
6 unmodified lines