Skip to content

Build packages

Build packages #58

name: Build packages
on:
workflow_call:
inputs:
model:
required: true
type: string
workflow_dispatch:
inputs:
model:
required: false
default: 'LX06'
description: Speaker model to build packages
type: string
jobs:
build:
name: Build for ${{ github.event.inputs.model || inputs.model || 'LX06' }}
if: ${{ github.repository == 'duhow/xiaoai-patch' }}
env:
MODEL: ${{ github.event.inputs.model || inputs.model || 'LX06' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build packages
uses: docker://ghcr.io/duhow/xiaoai-patch:latest
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: build-${{ env.MODEL }}
path: build-packages/targets/bin-*.tar.gz
retention-days: 7
compression-level: 0