From 6c4d77b5ae3c6d15c7b3824f669fec93d135c173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Thu, 29 Aug 2024 08:45:13 +0200 Subject: [PATCH] Make Android and iOS prebuilds --- .github/workflows/prebuild.yml | 35 +++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index e77721e..60a4d6b 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -12,17 +12,46 @@ jobs: - os: ubuntu-22.04-arm64 platform: linux arch: arm64 + - os: ubuntu-22.04 + platform: android + arch: x64 + flags: --android-ndk 26.1.10909125 --android-api 34 + - os: ubuntu-22.04 + platform: android + arch: ia32 + flags: --android-ndk 26.1.10909125 --android-api 34 + - os: ubuntu-22.04 + platform: android + arch: arm64 + flags: --android-ndk 26.1.10909125 --android-api 34 + - os: ubuntu-22.04 + platform: android + arch: arm + flags: --android-ndk 26.1.10909125 --android-api 34 - os: macos-12 platform: darwin arch: x64 - os: macos-14 platform: darwin arch: arm64 + - os: macos-14 + platform: ios + arch: arm64 + - os: macos-14 + platform: ios + arch: arm64 + tags: -simulator + flags: --simulator + - os: macos-14 + platform: ios + arch: x64 + tags: -simulator + flags: --simulator - os: windows-2022 platform: win32 arch: x64 runs-on: ${{ matrix.os }} - name: ${{ matrix.platform }}-${{ matrix.arch }} + name: ${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }} steps: - uses: actions/checkout@v4 with: @@ -36,8 +65,8 @@ jobs: node-version: lts/* - run: npm install -g bare-runtime bare-dev - run: npm install - - run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} + - run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }} - uses: actions/upload-artifact@v4 with: - name: ${{ matrix.platform }}-${{ matrix.arch }} + name: ${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }} path: prebuilds/*