Skip to content

Commit

Permalink
conditional arm
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtycajunrice committed Dec 10, 2024
1 parent 02c3efa commit 60a12e5
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,26 @@ jobs:
build:
name: Build Target
strategy:
fail-fast: true
fail-fast: false
matrix:
engine: [5.4] # [5.5, 5.4, 5.3, 5.2, 5.1, 5.0]
os: [ubuntu-latest-8] # [ubuntu-24.04, ubuntu-24.04-arm64, windows-11-desktop, macos-13] ubuntu-latest-8
engine: [ 5.4 ] # [5.5, 5.4, 5.3, 5.2, 5.1, 5.0]
os: [ ubuntu-latest-8, ubuntu-24.04-arm64 ] # windows-11-desktop, macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

#- name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ vars.GHCR_USERNAME }}
# password: ${{ secrets.GHCR_TOKEN }}
#
- uses: addnab/docker-run-action@v3
- name: Set Linux Target
if: ${{ matrix.os == 'ubuntu-latest-8' || matrix.os == 'ubuntu-24.04-arm64' }}
run: |
export LINUX_TARGET_TYPE="Linux"
if [[ "${{ matrix.os }}" == "ubuntu-24.04-arm64" ]]; then
export LINUX_TARGET_TYPE="LinuxArm64"
fi
echo "LINUX_TARGET_TYPE=$LINUX_TARGET_TYPE" >> "$GITHUB_ENV"
- name: Build Plugin (Linux)
if: ${{ matrix.os == 'ubuntu-latest-8' || matrix.os == 'ubuntu-24.04-arm64' }}
uses: addnab/docker-run-action@v3
with:
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
Expand All @@ -50,8 +55,8 @@ jobs:
Engine/Build/BatchFiles/RunUAT.sh \
BuildPlugin \
-NoHostPlatform \
-TargetPlatform=Linux+LinuxArm64 \
-Package=/home/ue4/build \
-TargetPlatform=Linux${{ env.LINUX_TARGET_TYPE }} \
-Package=/build \
-Plugin="/plugin/Thirdweb.uplugin"
# - name: Downgrade Xcode
Expand All @@ -64,10 +69,10 @@ jobs:
# if: ${{ matrix.platform == 'ios' }}
# run: clang --version

#- name: Archive Build Artifact
# uses: actions/upload-artifact@v4
# with:
# name: ${{ format('{0}-{1}-{2}', matrix.platform, matrix.arch, github.run_id) }}
# path: |
# target/*/release/libthirdweb.a
# target/*/release/thirdweb.lib
# - name: Archive Build Artifact
# uses: actions/upload-artifact@v4
# with:
# name: ${{ format('{0}-{1}-{2}', matrix.platform, matrix.arch, github.run_id) }}
# path: |
# target/*/release/libthirdweb.a
# target/*/release/thirdweb.lib

0 comments on commit 60a12e5

Please sign in to comment.