Skip to content

Commit

Permalink
CCS-4399 Fix double zipped artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
msobo1 committed Jan 16, 2023
1 parent 3cb993b commit fce21c3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 80 deletions.
18 changes: 0 additions & 18 deletions .github/actions/zip_artifact/bash/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/actions/zip_artifact/bash/zip_artifact.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/actions/zip_artifact/powershell/action.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/zip_artifact/powershell/zip_artifact.ps1

This file was deleted.

35 changes: 11 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Build Unreal Plugin

on: push
on:
push:
workflow_dispatch:

env:
CPP_SDK_TAG: "2.2.6"
CPP_SDK_DESTINATION: "DolbyIO/Source/ThirdParty"
CPP_SDK_URL: "https://github.com/DolbyIO/comms-sdk-cpp/releases/download"
UNREAL_PLUGIN_OUTPUT: "Build/DolbyIO"
RETENTION: 8
RETENTION: 14

jobs:
build-macos:
Expand Down Expand Up @@ -43,21 +45,14 @@ jobs:
-TargetPlatforms=Mac \
-Package=$(pwd)/${{ env.UNREAL_PLUGIN_OUTPUT }} \
-StrictIncludes
- name: Zipping DolbIO Plugin
uses: ./.github/actions/zip_artifact/bash
with:
zip_name: "DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}.zip"
src_dir_path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
- name: Archive DolbyIO Plugin
if: contains(fromJson('["refs/heads/main", "refs/heads/develop", "refs/tags"]'), github.ref)
if: contains(fromJson('["refs/heads/main", "refs/heads/develop", "refs/tags/v"]'), github.ref)
uses: actions/upload-artifact@v3
with:
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}.zip
path: ./DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}.zip
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
retention-days: ${{ env.RETENTION }}
- name: Create GitHub release
run: |
echo "Create GitHub release only for tag."

build-windows:
strategy:
fail-fast: false
Expand All @@ -81,18 +76,10 @@ jobs:
Write-Output "UE_${{ matrix.version }}"
$UERunUAT = "C:\\Program Files\\Epic Games\\UE_${{ matrix.version }}\\Engine\\Build\\BatchFiles\\RunUAT.bat"
& $UERunUAT BuildPlugin -Rocket -Plugin="$(pwd)\\DolbyIO\\DolbyIO.uplugin" -TargetPlatforms=Win64 -Package="$(pwd)\\Build\\DolbyIO" -StrictIncludes -VS2019 -NoTurnKeyVariables
- name: Zipping DolbyIO Plugin
uses: ./.github/actions/zip_artifact/powershell
with:
zip_name: "DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}.zip"
src_dir_path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
- name: Archive DolbyIO Plugin
if: contains(fromJson('["refs/heads/main", "refs/heads/develop", "refs/tags"]'), github.ref)
if: contains(fromJson('["refs/heads/main", "refs/heads/develop", "refs/tags/v"]'), github.ref)
uses: actions/upload-artifact@v3
with:
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}.zip
path: ./DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}.zip
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
retention-days: ${{ env.RETENTION }}
- name: Create GitHub release
run: |
Write-Output "Create GitHub release only for tag."

0 comments on commit fce21c3

Please sign in to comment.