-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.23 KB
/
standalone-test.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
39
40
41
42
43
44
name: Build and Test Standalone
on:
push:
branches:
- '**'
- '!main'
pull_request:
workflow_dispatch:
jobs:
push_to_registries:
name: Build Standalone
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
addon: ["standalone_whisper"]
device: ["cpu", "cuda"]
type: [ {arch: "aarch64", platform: "linux/arm64"}, {arch: "amd64", platform: "linux/amd64"} ]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.type.arch }}
- uses: mr-smithers-excellent/docker-build-push@v6
name: "Build & push Standalone Docker image: ${{ matrix.type.arch }}-${{ matrix.device }}"
with:
image: "${{ matrix.type.arch }}_${{ matrix.device }}-${{ matrix.addon }}"
dockerfile: "${{ matrix.addon }}/${{ matrix.device }}/${{ matrix.type.arch }}-Dockerfile"
tags: latest
registry: ghcr.io
platform: ${{ matrix.type.platform }}
username: ${{ github.repository_owner }}
password: ${{ secrets.ACTION_TOKEN }}
pushImage: false