-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/dotLottie-v2
- Loading branch information
Showing
4 changed files
with
205 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,22 +15,15 @@ on: | |
commitSHA: | ||
description: "Commit SHA (leave blank for default branch)" | ||
required: false | ||
machine: | ||
description: "Machine to run on, e.g. macos-12, ubuntu-20.04" | ||
required: false | ||
default: "macos-12" | ||
appleXcodeVersion: | ||
description: "Apple Xcode version, e.g. Xcode_13.3.1.app" | ||
required: false | ||
default: "Xcode_13.3.1.app" | ||
appleMacosxSdk: | ||
description: "Apple MacOSX SDK, e.g. MacOSX12.3" | ||
required: false | ||
default: "MacOSX12.3" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.inputs.target }}-${{ github.event.inputs.commitSHA || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ github.event.inputs.machine }} | ||
build-apple: | ||
runs-on: macos-12 | ||
if: github.event.inputs.target == 'apple' || github.event.inputs.target == 'all' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
@@ -48,42 +41,78 @@ jobs: | |
|
||
- name: Build Setup | ||
run: make mac-setup | ||
|
||
- name: Build Android | ||
if: github.event.inputs.target == 'android' || github.event.inputs.target == 'all' | ||
env: | ||
APPLE_XCODE_APP_NAME: ${{ github.event.inputs.appleXcodeVersion }} | ||
APPLE_MACOSX_SDK: ${{ github.event.inputs.appleMacosxSdk }} | ||
run: make android | ||
|
||
- name: Upload Android Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: android | ||
path: ./release/android/*.tar.gz | ||
TARGET: apple | ||
|
||
- name: Build Apple | ||
if: github.event.inputs.target == 'apple' || github.event.inputs.target == 'all' | ||
env: | ||
APPLE_XCODE_APP_NAME: ${{ github.event.inputs.appleXcodeVersion }} | ||
APPLE_MACOSX_SDK: ${{ github.event.inputs.appleMacosxSdk }} | ||
APPLE_XCODE_APP_NAME: Xcode_13.3.1.app | ||
APPLE_MACOSX_SDK: MacOSX12.3 | ||
run: rm -f /usr/local/lib/libjpeg* ; make apple | ||
|
||
- name: Upload Apple Artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: apple | ||
path: ./release/apple/*.tar.gz | ||
name: dotlottie-player.darwin.tar.gz | ||
path: release/apple/dotlottie-player.darwin.tar.gz | ||
if-no-files-found: error | ||
|
||
- name: Build WASM | ||
if: github.event.inputs.target == 'wasm' || github.event.inputs.target == 'all' | ||
build-android: | ||
runs-on: macos-latest | ||
if: github.event.inputs.target == 'android' || github.event.inputs.target == 'all' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commitSHA || github.ref }} | ||
|
||
- uses: Homebrew/actions/setup-homebrew@master | ||
- uses: ningenMe/[email protected] | ||
|
||
- name: Install Make | ||
run: brew install make | ||
|
||
- name: Build Setup | ||
run: make mac-setup | ||
env: | ||
APPLE_XCODE_APP_NAME: ${{ github.event.inputs.appleXcodeVersion }} | ||
APPLE_MACOSX_SDK: ${{ github.event.inputs.appleMacosxSdk }} | ||
TARGET: android | ||
|
||
- name: Build Android | ||
run: make android | ||
|
||
- name: Upload Android Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dotlottie-player.android.tar.gz | ||
path: release/android/dotlottie-player.android.tar.gz | ||
if-no-files-found: error | ||
|
||
build-wasm: | ||
runs-on: macos-latest | ||
if: github.event.inputs.target == 'wasm' || github.event.inputs.target == 'all' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commitSHA || github.ref }} | ||
|
||
- uses: Homebrew/actions/setup-homebrew@master | ||
- uses: ningenMe/[email protected] | ||
|
||
- name: Install Make | ||
run: brew install make | ||
|
||
- name: Build Setup | ||
run: make mac-setup | ||
env: | ||
TARGET: wasm | ||
|
||
- name: Build WASM | ||
run: make wasm | ||
|
||
- name: Upload WASM Artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wasm | ||
path: ./release/wasm/*.tar.gz | ||
name: dotlottie-player.wasm.tar.gz | ||
path: release/wasm/dotlottie-player.wasm.tar.gz | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,101 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-artifacts: | ||
if: github.head_ref == 'release' && github.event.pull_request.merged == true | ||
build-apple: | ||
runs-on: macos-12 | ||
if: github.head_ref == 'release' && github.event.pull_request.merged == true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Homebrew/actions/setup-homebrew@master | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "13.3.1" | ||
- uses: ningenMe/[email protected] | ||
|
||
- name: Install Make | ||
run: brew install make | ||
|
||
- name: Build Setup | ||
run: make mac-setup | ||
- name: Build Artifacts | ||
env: | ||
TARGET: apple | ||
|
||
- name: Build Apple | ||
env: | ||
APPLE_XCODE_APP_NAME: Xcode_13.3.1.app | ||
APPLE_MACOSX_SDK: MacOSX12.3 | ||
run: make all | ||
- name: Upload Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: dotlottie-player.android.tar.gz | ||
path: release/android/dotlottie-player.android.tar.gz | ||
if-no-files-found: error | ||
- name: Upload Artifact | ||
uses: actions/[email protected] | ||
run: rm -f /usr/local/lib/libjpeg* ; make apple | ||
|
||
- name: Upload Apple Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dotlottie-player.darwin.tar.gz | ||
path: release/apple/dotlottie-player.darwin.tar.gz | ||
if-no-files-found: error | ||
- name: Upload Artifact | ||
|
||
build-android: | ||
runs-on: macos-latest | ||
if: github.head_ref == 'release' && github.event.pull_request.merged == true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Homebrew/actions/setup-homebrew@master | ||
- uses: ningenMe/[email protected] | ||
|
||
- name: Install Make | ||
run: brew install make | ||
|
||
- name: Build Setup | ||
run: make mac-setup | ||
env: | ||
TARGET: android | ||
|
||
- name: Build Android | ||
run: make android | ||
|
||
- name: Upload Android Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: dotlottie-player.android.tar.gz | ||
path: release/android/dotlottie-player.android.tar.gz | ||
if-no-files-found: error | ||
|
||
build-wasm: | ||
runs-on: macos-latest | ||
if: github.head_ref == 'release' && github.event.pull_request.merged == true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Homebrew/actions/setup-homebrew@master | ||
- uses: ningenMe/[email protected] | ||
|
||
- name: Install Make | ||
run: brew install make | ||
|
||
- name: Build Setup | ||
run: make mac-setup | ||
env: | ||
TARGET: wasm | ||
|
||
- name: Build WASM | ||
run: make wasm | ||
|
||
- name: Upload WASM Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dotlottie-player.wasm.tar.gz | ||
path: release/wasm/dotlottie-player.wasm.tar.gz | ||
if-no-files-found: error | ||
|
||
release: | ||
needs: [build-artifacts] | ||
needs: [build-apple, build-android, build-wasm] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters