Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Alpha committed Oct 31, 2023
1 parent 6292671 commit 3f4331c
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,31 @@ jobs:
runs-on: self-hosted
strategy:
matrix:
version: ["4.24", "4.25", "4.26", "4.27", "5.0", "5.1", "5.2", "5.3"]

version:
- {major: 4, minor: 24}
- {major: 4, minor: 25}
- {major: 4, minor: 26}
- {major: 4, minor: 27}
- {major: 5, minor: 0}
- {major: 5, minor: 1}
- {major: 5, minor: 2}
- {major: 5, minor: 3}

steps:
- uses: actions/[email protected]

- name: Run Setup Script
run: C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64 -shell bash setup.sh

- name: Package for Unreal Engine
run: python package.py "$env:UE_${{ matrix.version[0] }}.${{ matrix.version[2] }}${{ matrix.version[3] }}" "$env:RUNNER_TEMP"
run: python package.py "$env:UE_${{ matrix.version.major }}.${{ matrix.version.minor }}" "$env:RUNNER_TEMP"

- name: Upload Build-Artifact
if: startsWith(github.ref, 'refs/heads/') # Upload artifacts when commits (not tags) are pushed
uses: actions/[email protected]
with:
name: UnrealLibretro-${{ matrix.version }}
path: ${{ runner.temp }}/UnrealLibretro-${{ matrix.version }}
name: UnrealLibretro-${{ matrix.version.major }}.${{ matrix.version.minor }}
path: ${{ runner.temp }}/UnrealLibretro-${{ matrix.version.major }}.${{ matrix.version.minor }}
if-no-files-found: error

- name: Upload Release Asset
Expand All @@ -56,7 +64,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./my-artifact.zip
asset_name: my-artifact.zip
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ runner.temp }}/UnrealLibretro-${{ matrix.version.major }}.${{ matrix.version.minor }}.zip
asset_name: UnrealLibretro-${{ matrix.version.major }}.${{ matrix.version.minor }}.zip
asset_content_type: application/zip

0 comments on commit 3f4331c

Please sign in to comment.