-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: migrate to upload-artifact@v4, download-artifact@v4 and labeler@v5 (
#10431) * Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump actions/download-artifact from 3 to 4 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * github: group github actions updates going forward * ci: update to labeler@v5 * ci: properly differentiate between windows build artifacts on PRs * ci: workaround flatpak-builder temporarily as well as test fix * ci: simplify things, just explicitly specify the artifact names in the workflows --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tyler Wilding <[email protected]>
- Loading branch information
1 parent
eef53f1
commit 7207681
Showing
12 changed files
with
210 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
jobName: | ||
required: true | ||
type: string | ||
artifactPrefixName: | ||
required: true | ||
type: string | ||
os: | ||
required: false | ||
type: string | ||
|
@@ -60,9 +63,7 @@ jobs: | |
id: artifact-metadata | ||
shell: bash | ||
env: | ||
OS: linux | ||
BUILD_SYSTEM: flatpak | ||
ARCH: ${{ inputs.platform }} | ||
PREFIX: ${{ inputs.artifactPrefixName }} | ||
EVENT_NAME: ${{ github.event_name }} | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
PR_NUM: ${{ github.event.pull_request.number }} | ||
|
@@ -90,9 +91,11 @@ jobs: | |
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json | ||
- name: Build Flatpak | ||
uses: flatpak/flatpak-github-actions/[email protected] | ||
# TODO - based on v6.3, switch back to the main action once change is accepted (or they release a breaking change that uses upload-artifact@v4) | ||
uses: xTVaser/flatpak-github-actions/flatpak-builder@64267d4cf01f7955a40128039d0abab17bb48aac | ||
with: | ||
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak | ||
upload-artifact: false | ||
manifest-path: .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json | ||
arch: x86_64 | ||
build-bundle: true | ||
|
@@ -131,3 +134,16 @@ jobs: | |
repository: stable | ||
token: ${{ secrets.FLATHUB_TOKEN }} | ||
|
||
# NOTE - this is done after on purpose so the flatpak file is wherever it needs to be for the previous pushes | ||
- name: Prepare artifacts folder | ||
# NOTE - 'flatpak-builder' dumps the artifact out into the current directory | ||
run: | | ||
mkdir -p "$GITHUB_WORKSPACE"/ci-artifacts/ | ||
mv "./${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak" "$GITHUB_WORKSPACE"/ci-artifacts/ | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.artifact-metadata.outputs.artifact-name }} | ||
path: ci-artifacts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.