From f9101b12f7dcc80713af91ac57a204daa6a96899 Mon Sep 17 00:00:00 2001 From: "Nicholas St. Germain" Date: Mon, 9 Dec 2024 18:37:49 -0600 Subject: [PATCH] Test push for a workflow --- .github/workflows/build.yml | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2ec93c5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,65 @@ +name: Build Binaries + +on: + workflow_dispatch: + push: + branches: [ main, ci-cd ] + paths: + - 'Config/**' + - 'Content/**' + - 'Resources/**' + - 'Source/**' + - 'Thirdweb.uplugin' + pull_request: + branches: [ main, ci-cd ] + paths: + - 'Config/**' + - 'Content/**' + - 'Resources/**' + - 'Source/**' + - 'Thirdweb.uplugin' + +jobs: + build: + name: Build Target + strategy: + fail-fast: true + matrix: + engine: [5.4] # [5.5, 5.4, 5.3, 5.2, 5.1, 5.0] + os: [ubuntu-24.04] # [ubuntu-24.04, ubuntu-24.04-arm64, windows-2022, macos-13] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - uses: addnab/docker-run-action@v3 + with: + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} + registry: gcr.io + image: epicgames/unreal-engine:dev-slim-${{ matrix.engine }} + options: -v ${{ github.workspace }}:/plugin + run: | + Engine/Build/BatchFiles/RunUAT.sh \ + BuildPlugin \ + -NoHostPlatform \ + -TargetPlatform=Linux+LinuxArm64 \ + -Package=/home/ue4/build \ + -Plugin="/plugin/Thirdweb.uplugin" + + # - name: Downgrade Xcode + # if: ${{ matrix.os == 'macos-13' }} + # uses: maxim-lobanov/setup-xcode@v1 + # with: + # xcode-version: '14.1.0' + + # - name: Debug Clang + # 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