From 0ed206964a49a397b2d7831ee7bc69b240fc7c64 Mon Sep 17 00:00:00 2001 From: Aidan Dunlap <10292904+aiddun@users.noreply.github.com> Date: Wed, 5 Jun 2024 02:14:47 -0500 Subject: [PATCH 1/2] Create apple.yml --- .github/workflows/apple.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/apple.yml diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml new file mode 100644 index 0000000..35ee0d0 --- /dev/null +++ b/.github/workflows/apple.yml @@ -0,0 +1,50 @@ +name: Build iOS/Mac + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Build libvlc + run: | + git clone https://code.videolan.org/videolan/vlc && cd vlc + mkdir build && cd build + ../extras/package/macosx/build.sh ${ARGS} -a ${ARCH} + + - name: Build unity plugin + run: | + cd vlc/build/macos-install + sed -i '' "1s|.*|prefix=$(pwd | sed 's#/#\\\/#g')|" lib/pkgconfig/libvlc.pc + export PATH="$HOME/sandbox/bin:$PATH" + cd ../../.. + PKG_CONFIG_PATH=./vlc/build/macos-install/lib/pkgconfig meson setup build_${ARCH} ${ARGS_TRIAL} --buildtype release + ninja -C build_${ARCH} + mv "build_${ARCH}/PluginSource/libVLCUnityPlugin.1.dylib" "build_${ARCH}/PluginSource/libVLCUnityPlugin.dylib" + install_name_tool -add_rpath @loader_path/ build_${ARCH}/PluginSource/libVLCUnityPlugin.dylib + + - name: Archive production artifacts + uses: actions/upload-artifact@v2 + with: + name: production-artifacts + path: | + build_${ARCH}/PluginSource/libVLCUnityPlugin.dylib From d55707a0190b8c537ab66f250a5981132427ea05 Mon Sep 17 00:00:00 2001 From: Aidan Dunlap <10292904+aiddun@users.noreply.github.com> Date: Wed, 5 Jun 2024 02:16:50 -0500 Subject: [PATCH 2/2] Update apple.yml --- .github/workflows/apple.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml index 35ee0d0..b60e12e 100644 --- a/.github/workflows/apple.yml +++ b/.github/workflows/apple.yml @@ -15,16 +15,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Build libvlc run: | git clone https://code.videolan.org/videolan/vlc && cd vlc