Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: 🎡 upload release artifact #59

Merged
merged 7 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .github/workflows/android.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/apple.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build Artifacts

on:
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
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: 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: make apple

- 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
29 changes: 0 additions & 29 deletions .github/workflows/wasm.yml

This file was deleted.

Loading