Skip to content

Commit

Permalink
fix: fixed build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Feb 20, 2024
1 parent 13912e0 commit e279d02
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
name: Build Artifacts

# Todo remove on pull_request

on:
pull_request:
branches: [main]

# workflow_dispatch:
# inputs:
# target:
# type: choice
# description: "Target to build"
# required: true
# options:
# - "apple"
# - "android"
# - "wasm"
# - "all"
# commitSHA:
# description: "Commit SHA (leave blank for default branch)"
# required: false
workflow_dispatch:
inputs:
target:
type: choice
description: "Target to build"
required: true
options:
- "apple"
- "android"
- "wasm"
- "all"
commitSHA:
description: "Commit SHA (leave blank for default branch)"
required: false

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commitSHA || github.ref }}

- uses: Homebrew/actions/setup-homebrew@master
- uses: maxim-lobanov/setup-xcode@v1
Expand All @@ -41,34 +38,37 @@ jobs:
run: make mac-setup

- name: Build Android
if: github.event.inputs.target == 'android' || github.event.inputs.target == 'all'
env:
APPLE_MACOSX_SDK: MacOSX13
run: make android

# - name: Upload Android Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: android
# path: ./release/android/*.tar.gz
- name: Upload Android Artifacts
uses: actions/upload-artifact@v3
with:
name: android
path: ./release/android/*.tar.gz

- name: Build Apple
if: github.event.inputs.target == 'apple' || github.event.inputs.target == 'all'
env:
APPLE_MACOSX_SDK: MacOSX13
run: rm /usr/local/lib/libjpeg* ; make apple

# - name: Upload Apple Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: apple
# path: ./release/apple/*.tar.gz
- name: Upload Apple Artifacts
uses: actions/upload-artifact@v3
with:
name: apple
path: ./release/apple/*.tar.gz

- name: Build WASM
if: github.event.inputs.target == 'wasm' || github.event.inputs.target == 'all'
env:
APPLE_MACOSX_SDK: MacOSX13
run: make wasm

# - name: Upload WASM Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: wasm
# path: ./release/wasm/*.tar.gz
- name: Upload WASM Artifacts
uses: actions/upload-artifact@v3
with:
name: wasm
path: ./release/wasm/*.tar.gz

0 comments on commit e279d02

Please sign in to comment.