From f2f845de27c9ad89cfdb9f656b2cc5223c0737b7 Mon Sep 17 00:00:00 2001 From: Damon Chan <92778185+damoncro@users.noreply.github.com> Date: Thu, 4 May 2023 17:27:47 +0800 Subject: [PATCH] Problem: CI is outdated in metaverse demo (fix cronos-labs/play-unreal-plugin#314) (#46) * Problem: CI is outdated in metaverse demo (fix cronos-labs/play-unreal-plugin#314) * Fix run and use * Remove - --- .github/workflows/dev.yml | 44 ++++++++++++++++++++++++----------- .github/workflows/release.yml | 32 +++++++++++++++---------- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index d3e65cd..8b0542c 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -16,20 +16,28 @@ jobs: simple: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - name: Checkout play-uneral-demo + uses: actions/checkout@v3 - - name: Setup + - name: Setup environment run: | sudo rm -rf /usr/share/dotnet sudo rm -rf /opt/ghc sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" sudo rm -rf /usr/local/lib/android - mkdir -p simple/Plugins - cd simple/Plugins - git clone --branch 4.27 https://github.com/cronos-labs/play-unreal-plugin.git - cd play-unreal-plugin - make + + - name: Checkout play-unreal-plugin repo + uses: actions/checkout@v3 + with: + repository: cronos-labs/play-unreal-plugin + path: simple/Plugins/play-unreal-plugin + + - name: Build play-unreal-plugin repo + run: | + cd simple/Plugins/play-unreal-plugin + TARGET=4.27 make + python change_version.py 4.27.0 sudo chmod 777 -R $GITHUB_WORKSPACE - uses: addnab/docker-run-action@v3 @@ -66,20 +74,28 @@ jobs: Metaverse: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - name: Checkout play-uneral-demo + uses: actions/checkout@v3 - - name: Setup + - name: Setup environment run: | sudo rm -rf /usr/share/dotnet sudo rm -rf /opt/ghc sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" sudo rm -rf /usr/local/lib/android - mkdir -p Metaverse/Plugins - cd Metaverse/Plugins - git clone --branch main https://github.com/cronos-labs/play-unreal-plugin.git - cd play-unreal-plugin - make + + - name: Checkout play-unreal-plugin repo + uses: actions/checkout@v3 + with: + repository: cronos-labs/play-unreal-plugin + path: Metaverse/Plugins/play-unreal-plugin + + - name: Build play-unreal-plugin repo + run: | + cd Metaverse/Plugins/play-unreal-plugin + TARGET=5.1 make + python change_version.py 5.1.0 sudo chmod 777 -R $GITHUB_WORKSPACE - uses: addnab/docker-run-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index baea83a..0a938b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,13 +18,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup + - name: Checkout play-unreal-plugin repo + uses: actions/checkout@v3 + with: + repository: cronos-labs/play-unreal-plugin + path: simple/Plugins/play-unreal-plugin + + - name: Build play-unreal-plugin repo run: | - mkdir -p simple/Plugins - cd simple/Plugins - git clone --branch 4.27 https://github.com/cronos-labs/play-unreal-plugin.git - cd play-unreal-plugin - make + cd simple/Plugins/play-unreal-plugin + TARGET=4.27 make + python change_version.py 4.27.0 - name: Package run: | @@ -50,13 +54,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup + - name: Checkout play-unreal-plugin repo + uses: actions/checkout@v3 + with: + repository: cronos-labs/play-unreal-plugin + path: Metaverse/Plugins/play-unreal-plugin + + - name: Build play-unreal-plugin repo run: | - mkdir -p Metaverse/Plugins - cd Metaverse/Plugins - git clone --branch main https://github.com/cronos-labs/play-unreal-plugin.git - cd play-unreal-plugin - make + cd Metaverse/Plugins/play-unreal-plugin + TARGET=5.1 make + python change_version.py 5.1.0 - name: Package run: |