Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 6 to 7. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dawidd6/action-download-artifact/releases">dawidd6/action-download-artifact's releases</a>.</em></p> <blockquote> <h2>v7</h2> <h2>What's Changed</h2> <ul> <li>build(deps): bump fast-xml-parser from 4.4.0 to 4.4.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/299">dawidd6/action-download-artifact#299</a></li> <li>build(deps): bump <code>@actions/artifact</code> from 2.1.7 to 2.1.9 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/300">dawidd6/action-download-artifact#300</a></li> <li>build(deps): bump adm-zip from 0.5.14 to 0.5.15 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/301">dawidd6/action-download-artifact#301</a></li> <li>build(deps): bump adm-zip from 0.5.15 to 0.5.16 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/306">dawidd6/action-download-artifact#306</a></li> <li>build(deps): bump path-to-regexp from 6.2.2 to 6.3.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/307">dawidd6/action-download-artifact#307</a></li> <li>build(deps): bump <code>@actions/artifact</code> from 2.1.9 to 2.1.10 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/311">dawidd6/action-download-artifact#311</a></li> <li>build(deps): bump <code>@actions/core</code> from 1.10.1 to 1.11.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/310">dawidd6/action-download-artifact#310</a></li> <li>build(deps): bump <code>@actions/core</code> from 1.11.0 to 1.11.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/312">dawidd6/action-download-artifact#312</a></li> <li>build(deps): bump <code>@actions/artifact</code> from 2.1.10 to 2.1.11 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/313">dawidd6/action-download-artifact#313</a></li> <li>build(deps): Fix cross-spawn >=7.0.0 <= 7.0.5 vulnerability by <a href="https://github.com/alexcouret"><code>@alexcouret</code></a> in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/317">dawidd6/action-download-artifact#317</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/alexcouret"><code>@alexcouret</code></a> made their first contribution in <a href="https://redirect.github.com/dawidd6/action-download-artifact/pull/317">dawidd6/action-download-artifact#317</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/dawidd6/action-download-artifact/compare/v6...v7">https://github.com/dawidd6/action-download-artifact/compare/v6...v7</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="80620a5d27"><code>80620a5</code></a> node_modules: update</li> <li><a href="b15e003f46"><code>b15e003</code></a> node_modules: install</li> <li><a href="1ee9a455fd"><code>1ee9a45</code></a> build(deps): Fix cross-spawn >=7.0.0 <= 7.0.5 vulnerability (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/317">#317</a>)</li> <li><a href="b2f2706ac4"><code>b2f2706</code></a> build(deps): bump <code>@actions/artifact</code> from 2.1.10 to 2.1.11 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/313">#313</a>)</li> <li><a href="fdbeba027c"><code>fdbeba0</code></a> build(deps): bump <code>@actions/core</code> from 1.11.0 to 1.11.1 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/312">#312</a>)</li> <li><a href="a74b42987a"><code>a74b429</code></a> build(deps): bump <code>@actions/core</code> from 1.10.1 to 1.11.0 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/310">#310</a>)</li> <li><a href="24e807a70c"><code>24e807a</code></a> build(deps): bump <code>@actions/artifact</code> from 2.1.9 to 2.1.10 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/311">#311</a>)</li> <li><a href="9592e3c4ab"><code>9592e3c</code></a> build(deps): bump path-to-regexp from 6.2.2 to 6.3.0 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/307">#307</a>)</li> <li><a href="5f966b63eb"><code>5f966b6</code></a> build(deps): bump adm-zip from 0.5.15 to 0.5.16 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/306">#306</a>)</li> <li><a href="db9477a3eb"><code>db9477a</code></a> build(deps): bump adm-zip from 0.5.14 to 0.5.15 (<a href="https://redirect.github.com/dawidd6/action-download-artifact/issues/301">#301</a>)</li> <li>Additional commits viewable in <a href="https://github.com/dawidd6/action-download-artifact/compare/v6...v7">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
107 lines
3.4 KiB
YAML
107 lines
3.4 KiB
YAML
name: deploy
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy release
|
|
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
|
|
# Prevent job from running on forks
|
|
if: ${{ !github.event.repository.fork }}
|
|
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- x86_64-unknown-linux-gnu
|
|
- x86_64-unknown-linux-musl
|
|
- aarch64-unknown-linux-gnu
|
|
- aarch64-unknown-linux-musl
|
|
- x86_64-pc-windows-msvc
|
|
- i686-pc-windows-msvc
|
|
- x86_64-apple-darwin
|
|
- aarch64-apple-darwin
|
|
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Get the Oxipng version
|
|
id: oxipngMeta
|
|
run: echo "version=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "oxipng").version')"
|
|
>> "$GITHUB_OUTPUT"
|
|
|
|
- name: Retrieve ${{ matrix.target }} binary
|
|
uses: dawidd6/action-download-artifact@v7
|
|
with:
|
|
workflow: oxipng.yml
|
|
commit: ${{ env.GITHUB_SHA }}
|
|
name: Oxipng binary (${{ matrix.target }})
|
|
path: target
|
|
|
|
- name: Generate up to date manual
|
|
run: scripts/manual.sh
|
|
|
|
- name: Build archives
|
|
working-directory: target
|
|
run: |
|
|
ARCHIVE_NAME="oxipng-${{ steps.oxipngMeta.outputs.version }}-${{ matrix.target }}"
|
|
|
|
mkdir "$ARCHIVE_NAME"
|
|
cp ../CHANGELOG.md ../README.md ../MANUAL.txt "$ARCHIVE_NAME"
|
|
|
|
case '${{ matrix.target }}' in
|
|
*-windows-*)
|
|
cp ../LICENSE "$ARCHIVE_NAME/LICENSE.txt"
|
|
cp oxipng.exe "$ARCHIVE_NAME"
|
|
zip "${ARCHIVE_NAME}.zip" "$ARCHIVE_NAME"/*;;
|
|
*)
|
|
cp ../LICENSE "$ARCHIVE_NAME"
|
|
cp oxipng "$ARCHIVE_NAME"
|
|
# Execute permissions are not stored in artifact files,
|
|
# so make the binary world-executable to meet user
|
|
# expectations set by preceding releases.
|
|
# Related issue:
|
|
# https://github.com/shssoichiro/oxipng/issues/575
|
|
chmod ugo+x "$ARCHIVE_NAME"/oxipng
|
|
tar -vczf "${ARCHIVE_NAME}.tar.gz" "$ARCHIVE_NAME"/*;;
|
|
esac
|
|
|
|
- name: Install QEMU and AArch64 cross compiler
|
|
if: matrix.target == 'aarch64-unknown-linux-gnu'
|
|
run: |
|
|
sudo apt-get -yq update
|
|
# The shared libc AArch64 libraries are needed for cargo deb below
|
|
# to be able to infer package requirements with dpkg-shlibdeps
|
|
# properly
|
|
sudo apt-get -yq install libc6-arm64-cross libgcc-s1-arm64-cross
|
|
|
|
- name: Build deb archives
|
|
if: endsWith(matrix.target, '-linux-gnu')
|
|
run: |
|
|
mkdir -p "target/${{ matrix.target }}/release"
|
|
mv target/oxipng "target/${{ matrix.target }}/release"
|
|
cargo install --locked cargo-deb
|
|
cargo deb --target "${{ matrix.target }}" --no-build --no-strip
|
|
|
|
- name: Create release notes
|
|
run: tail -n +3 CHANGELOG.md | sed -e '/^$/,$d' > RELEASE_NOTES.txt
|
|
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: v${{ steps.oxipngMeta.outputs.version }}
|
|
body_path: RELEASE_NOTES.txt
|
|
files: |
|
|
target/*.zip
|
|
target/*.tar.gz
|
|
target/${{ matrix.target }}/debian/*.deb
|