Skip to content

ci: 🎡 upload release artifact #1

ci: 🎡 upload release artifact

ci: 🎡 upload release artifact #1

Workflow file for this run

name: Build Artifacts
# on:
# workflow_dispatch:
# inputs:
# target:
# type: choice
# description: "Target to build"
# required: true
# options:
# - "apple"
# - "android"
# - "wasm"
# - "all"
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: Homebrew/actions/setup-homebrew@master
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: ningenMe/[email protected]
- name: Install Make
run: brew install make
- name: Build Setup
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: Build Apple
# if: github.event.inputs.target == 'apple' || github.event.inputs.target == 'all'
env:
APPLE_MACOSX_SDK: MacOSX13
run: make apple
- name: Build WASM
# if: github.event.inputs.target == 'wasm' || github.event.inputs.target == 'all'
env:
APPLE_MACOSX_SDK: MacOSX13
run: make wasm
- name: Upload Android Artifacts
uses: actions/upload-artifact@v3
with:
name: android
path: ./release/android/*.tar.gz
- name: Upload Apple Artifacts
uses: actions/upload-artifact@v3
with:
name: apple
path: ./release/apple/*.tar.gz
- name: Upload WASM Artifacts
uses: actions/upload-artifact@v3
with:
name: wasm
path: ./release/wasm/*.tar.gz