mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
b0713641e7
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p> <blockquote> <h2>v4.0.0</h2> <h2>What's Changed</h2> <p>The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.</p> <p>For more information, see the <a href="https://github.com/actions/toolkit/tree/main/packages/artifact"><code>@actions/artifact</code></a> documentation.</p> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/bflad"><code>@bflad</code></a> made their first contribution in <a href="https://redirect.github.com/actions/download-artifact/pull/194">actions/download-artifact#194</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v3...v4.0.0">https://github.com/actions/download-artifact/compare/v3...v4.0.0</a></p> <h2>v3.0.2</h2> <ul> <li>Bump <code>@actions/artifact</code> to v1.1.1 - <a href="https://redirect.github.com/actions/download-artifact/pull/195">actions/download-artifact#195</a></li> <li>Fixed a bug in Node16 where if an HTTP download finished too quickly (<1ms, e.g. when it's mocked) we attempt to delete a temp file that has not been created yet <a href="hhttps://redirect.github.com/actions/toolkit/pull/1278">actions/toolkit#1278</a></li> </ul> <h2>v3.0.1</h2> <ul> <li><a href="https://redirect.github.com/actions/download-artifact/pull/178">Bump <code>@actions/core</code> to 1.10.0</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="f44cd7b40b
"><code>f44cd7b</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/259">#259</a> from actions/robherley/glob-downloads</li> <li><a href="3181fe853d
"><code>3181fe8</code></a> add some migration docs</li> <li><a href="aaaac7b403
"><code>aaaac7b</code></a> licensed cache</li> <li><a href="7c9182f0e1
"><code>7c9182f</code></a> update readme</li> <li><a href="b94e701556
"><code>b94e701</code></a> licensed cache</li> <li><a href="0b55470e40
"><code>0b55470</code></a> add test case for globbed downloads to same directory</li> <li><a href="0b51c2ef90
"><code>0b51c2e</code></a> update prettier/eslint versions</li> <li><a href="c4c6db724f
"><code>c4c6db7</code></a> support globbing artifact list & merging download directory</li> <li><a href="1bd0606e08
"><code>1bd0606</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/252">#252</a> from stchr/patch-1</li> <li><a href="eff4d42b1f
"><code>eff4d42</code></a> fix default for run-id</li> <li>Additional commits viewable in <a href="https://github.com/actions/download-artifact/compare/v3...v4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/download-artifact&package-manager=github_actions&previous-version=3&new-version=4)](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>
105 lines
3.6 KiB
YAML
105 lines
3.6 KiB
YAML
name: 🏭 Release Pipeline
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
# Windows
|
|
build_windows_clang:
|
|
name: "🖥️ Windows"
|
|
uses: ./.github/workflows/windows-build-clang.yaml
|
|
with:
|
|
cmakePreset: "Release-windows-clang-static"
|
|
cachePrefix: "static"
|
|
uploadArtifacts: true
|
|
secrets: inherit
|
|
|
|
# Linux
|
|
build_linux_clang:
|
|
name: "🐧 Linux"
|
|
uses: ./.github/workflows/linux-build-clang.yaml
|
|
with:
|
|
cmakePreset: "Release-linux-clang-static"
|
|
cachePrefix: "static"
|
|
uploadArtifacts: true
|
|
secrets: inherit
|
|
|
|
# macOS
|
|
build_macos_intel:
|
|
name: "🍎 MacOS"
|
|
uses: ./.github/workflows/macos-build.yaml
|
|
with:
|
|
cmakePreset: "Release-macos-clang-static"
|
|
cachePrefix: "static"
|
|
uploadArtifacts: true
|
|
secrets: inherit
|
|
|
|
# Upload the Artifacts
|
|
upload_artifacts:
|
|
if: github.repository == 'open-goal/jak-project'
|
|
needs:
|
|
- build_windows_clang
|
|
- build_linux_clang
|
|
- build_macos_intel
|
|
name: "Upload Artifacts"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Prepare Artifact Folder
|
|
run: mkdir -p ./ci-artifacts/final
|
|
|
|
- uses: actions/download-artifact@v4
|
|
name: Download all Artifacts
|
|
with:
|
|
path: ./ci-artifacts/
|
|
|
|
- name: Display structure of downloaded files
|
|
run: ls -Rl ./ci-artifacts/
|
|
|
|
- name: Prepare Linux Release Assets
|
|
run: |
|
|
mkdir -p ./ci-artifacts/linux
|
|
./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/linux ./ci-artifacts/opengoal-linux-static ./
|
|
pushd ci-artifacts/linux
|
|
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
|
|
tar czf ../final/opengoal-linux-${TAG_VAL}.tar.gz .
|
|
popd
|
|
chmod +x ./ci-artifacts/opengoal-linux-static/lsp/lsp
|
|
cp ./ci-artifacts/opengoal-linux-static/lsp/lsp ./ci-artifacts/final/opengoal-lsp-linux-${TAG_VAL}.bin
|
|
|
|
- name: Prepare Windows Build Assets
|
|
run: |
|
|
mkdir -p ./ci-artifacts/windows
|
|
./.github/scripts/releases/extract_build_windows.sh ./ci-artifacts/windows ./ci-artifacts/opengoal-windows-static ./
|
|
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
|
|
7z a -tzip ./ci-artifacts/final/opengoal-windows-${TAG_VAL}.zip ./ci-artifacts/windows/*
|
|
cp ./ci-artifacts/opengoal-windows-static/lsp.exe ./ci-artifacts/final/opengoal-lsp-windows-${TAG_VAL}.exe
|
|
|
|
- name: Prepare macOS Build Assets
|
|
run: |
|
|
mkdir -p ./ci-artifacts/macos
|
|
./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/macos ./ci-artifacts/opengoal-macos-static ./
|
|
pushd ci-artifacts/macos
|
|
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
|
|
tar czf ../final/opengoal-macos-intel-${TAG_VAL}.tar.gz .
|
|
popd
|
|
chmod +x ./ci-artifacts/opengoal-macos-static/lsp/lsp
|
|
cp ./ci-artifacts/opengoal-macos-static/lsp/lsp ./ci-artifacts/final/opengoal-lsp-macos-intel-${TAG_VAL}.bin
|
|
|
|
- name: Upload Assets
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
|
|
gh release upload "${TAG_VAL}" ${{ github.WORKSPACE }}/ci-artifacts/final/* --repo open-goal/jak-project --clobber
|
|
|
|
- name: Publish Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
|
|
run: |
|
|
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}')
|
|
gh release edit ${TAG_VAL} --draft=false --repo open-goal/jak-project
|