-
-
Notifications
You must be signed in to change notification settings - Fork 32
38 lines (36 loc) · 968 Bytes
/
build-packages.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@v3
- name: Build image
uses: docker/build-push-action@v3
with:
context: packages
tags: xiaoai-patch
load: true
- name: Build packages
uses: ./
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: build-${{ env.MODEL }}
path: build-packages/targets/bin-*.tar.gz