Skip to content

Commit

Permalink
Matrix for Native
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielku15 committed Oct 29, 2023
1 parent 43b6a36 commit 88475bd
Showing 1 changed file with 40 additions and 65 deletions.
105 changes: 40 additions & 65 deletions .github/workflows/reusable-full-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,100 +31,75 @@ jobs:
with:
name: nuke
path: build/bin/Debug/publish/
#
# Native Libs
windows:
needs: [nuke]
uses: ./.github/workflows/native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: windows-latest
target-os: windows
architectures: '[ "x64", "x86", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'

linux:
native:
needs: [nuke]
uses: ./.github/workflows/native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: ubuntu-latest
target-os: linux
architectures: '[ "x64", "x86", "arm", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'
strategy:
fail-fast: false
matrix:
include:
# Desktop
- runs-on: windows-latest
target-os: windows
architectures: '[ "x64", "x86", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'

macos:
needs: [nuke]
uses: ./.github/workflows/native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: macos-latest
target-os: linux
architectures: '[ "x64", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'
- runs-on: ubuntu-latest
target-os: linux
architectures: '[ "x64", "x86", "arm", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'

android:
needs: [nuke]
uses: ./.github/workflows/native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: ubuntu-latest
target-os: macos
architectures: '[ "x64", "x86", "arm", "arm64" ]'
variants: '[ "shared" , "jni" ]'
- runs-on: macos-latest
target-os: macos
architectures: '[ "x64", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'

# Mobile
- runs-on: ubuntu-latest
target-os: android
architectures: '[ "x64", "x86", "arm", "arm64" ]'
variants: '[ "shared" , "jni" ]'

ios:
needs: [nuke]
uses: ./.github/workflows/native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: macos-latest
target-os: ios
architectures: '[ "arm64" ]'
variants: '[ "shared" ]'
- runs-on: macos-latest
target-os: ios
architectures: '[ "arm64" ]'
variants: '[ "shared" ]'

iossimulator:
needs: [nuke]
- runs-on: macos-latest
target-os: iossimulator
architectures: '[ "arm64", "x64" ]'
variants: '[ "shared" ]'

uses: ./.github/workflows/native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: macos-latest
target-os: iossimulator
architectures: '[ "arm64", "x64" ]'
variants: '[ "shared" ]'
runs-on: ${{ matrix.runs-on }}
target-os: ${{ matrix.target-os }}
architectures: ${{ matrix.architectures }}
variants: ${{ matrix.variants }}

#
# Libraries
dotnet:
needs: [windows, linux, android, macos, ios, iossimulator]
needs: [native]
uses: ./.github/workflows/dotnet.yml
secrets: inherit
with:
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}

java:
needs: [windows, linux, android, macos]
needs: [native]
secrets: inherit
uses: ./.github/workflows/java.yml
with:
alphaskia-version: ${{ inputs.alphaskia-version }}
is-release-build: ${{ inputs.is-release-build }}

node:
needs: [windows, linux, macos]
needs: [native]
secrets: inherit
uses: ./.github/workflows/java.yml
with:
Expand Down

0 comments on commit 88475bd

Please sign in to comment.