Skip to content

Commit

Permalink
fix: build.yml fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Feb 20, 2024
1 parent 9e76d05 commit 13912e0
Showing 1 changed file with 29 additions and 34 deletions.
63 changes: 29 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,27 @@ 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 @@ -43,37 +41,34 @@ 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 13912e0

Please sign in to comment.