CI: migrate deprecating set-output commands
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Miles Liu · committed by Miles Liu · parent c859290 · 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.
Diff stats
1 file+8 added−8 removed
- other:+8 added−8 removed
Provenance
- Commit
8d1c363- Tree
69ec92a- Author
Miles Liu <miles@bung.cc>- Committer
Miles Liu <miles@bung.cc>- Parent
c859290
1 file changed+8 added−8 removed
modified:.github/workflows/CICD.yml+8 added-8 removed
160 unmodified lines161 "${STRIP}" "${BIN_PATH}"162 fi163 164 # 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_OUTPUT167 168 - 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_OUTPUT176 177 - name: Run tests178 uses: actions-rs/cargo@v1179 with:12 unmodified lines192 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_OUTPUT197 198 PKG_STAGING="${{ env.CICD_INTERMEDIATES_DIR }}/package"199 ARCHIVE_DIR="${PKG_STAGING}/${PKG_BASENAME}/"200 mkdir -p "${ARCHIVE_DIR}"18 unmodified lines219 esac;220 popd >/dev/null221 222 # 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_OUTPUT224 225 - name: Create Debian package226 id: debian-package227 shell: bash18 unmodified lines246 *) DPKG_ARCH=notset ;;247 esac;248 249 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_OUTPUT251 252 # Binary253 install -Dm755 "${{ steps.strip.outputs.BIN_PATH }}" "${DPKG_DIR}/usr/bin/${{ steps.strip.outputs.BIN_NAME }}"254 73 unmodified lines328 sensible (opinionated) defaults for a majority of use cases.329 EOF330 331 DPKG_PATH="${DPKG_STAGING}/${DPKG_NAME}"332- echo ::set-output name=DPKG_PATH::${DPKG_PATH}332+ echo "DPKG_PATH=${DPKG_PATH}" >> $GITHUB_OUTPUT333 334 # build dpkg335 fakeroot dpkg-deb --build "${DPKG_DIR}" "${DPKG_PATH}"336 14 unmodified lines351 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_OUTPUT356 357 - name: Publish archives and packages358 uses: softprops/action-gh-release@v1359 if: steps.is-release.outputs.IS_RELEASE6 unmodified lines