Skip to content

Commit

Permalink
chore: update upload-artifact github action to v4 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiertho authored Dec 11, 2024
1 parent 698ccb7 commit f91ad31
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/actions/create-android-plugin/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
java-version: 17

- name: Download fmod jar
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: fmod-jar
path: android-plugin/library/libraries/
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/create-native-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ runs:
cd ../../
- name: create android fmod artifact
if: inputs.platform == 'android'
if: inputs.platform == 'android' && inputs.target == 'template_release'
shell: ${{ inputs.shell }}
run: |
mkdir android-fmod-artifact
cp ../libs/fmod/android/core/lib/fmod.jar android-fmod-artifact/
cp android-plugin/library/src/main/resources/fmod-android-license.txt android-fmod-artifact/
- name: Upload fmod jar
if: inputs.platform == 'android'
uses: actions/upload-artifact@v3
if: inputs.platform == 'android' && inputs.target == 'template_release'
uses: actions/upload-artifact@v4
with:
name: fmod-jar
path: android-fmod-artifact
Expand All @@ -108,8 +108,8 @@ runs:
scons platform=${{ inputs.platform }} generate_bindings=yes target=${{ inputs.target }} target_path=${{ env.TARGET_PATH }} target_name=${{ env.TARGET_NAME }} -j${{ steps.cpu-cores.outputs.count }} ${{ inputs.flags }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.platform }}
name: ${{ inputs.platform }}-${{ inputs.target }}
path: ${{ env.TARGET_PATH }}${{ inputs.platform }}/**/*.*
if-no-files-found: error
74 changes: 64 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,34 +177,88 @@ jobs:
- name: Create android plugin
uses: ./.github/actions/create-android-plugin

- name: Download linux libraries
- name: Download linux editor libraries
uses: actions/download-artifact@v4
with:
name: linux
name: linux-editor
path: demo/addons/fmod/libs/linux/

- name: Download windows libraries
- name: Download linux template_debug libraries
uses: actions/download-artifact@v4
with:
name: windows
name: linux-template_debug
path: demo/addons/fmod/libs/linux/

- name: Download linux template_release libraries
uses: actions/download-artifact@v4
with:
name: linux-template_release
path: demo/addons/fmod/libs/linux/

- name: Download windows editor libraries
uses: actions/download-artifact@v4
with:
name: windows-editor
path: demo/addons/fmod/libs/windows/

- name: Download windows template_debug libraries
uses: actions/download-artifact@v4
with:
name: windows-template_debug
path: demo/addons/fmod/libs/windows/

- name: Download macos libraries
- name: Download windows template_release libraries
uses: actions/download-artifact@v4
with:
name: windows-template_release
path: demo/addons/fmod/libs/windows/

- name: Download macos editor libraries
uses: actions/download-artifact@v4
with:
name: macos-editor
path: demo/addons/fmod/libs/macos/

- name: Download macos template_debug libraries
uses: actions/download-artifact@v4
with:
name: macos
name: macos-template_debug
path: demo/addons/fmod/libs/macos/

- name: Download iOS libraries
- name: Download macos template_release libraries
uses: actions/download-artifact@v4
with:
name: macos-template_release
path: demo/addons/fmod/libs/macos/

- name: Download iOS template_debug libraries
uses: actions/download-artifact@v4
with:
name: ios-template_debug
path: demo/addons/fmod/libs/iOS/

- name: Download iOS template_release libraries
uses: actions/download-artifact@v4
with:
name: ios
name: ios-template_release
path: demo/addons/fmod/libs/iOS/

- name: Download android libraries
- name: Download android editor libraries
uses: actions/download-artifact@v4
with:
name: android-editor
path: demo/addons/fmod/libs/android/

- name: Download android template_debug libraries
uses: actions/download-artifact@v4
with:
name: android-template_debug
path: demo/addons/fmod/libs/android/

- name: Download android template_release libraries
uses: actions/download-artifact@v4
with:
name: android
name: android-template_release
path: demo/addons/fmod/libs/android/

- name: Create Release
Expand Down

0 comments on commit f91ad31

Please sign in to comment.