include build matrix to build x86_64 and aarch64

This commit is contained in:
mauwii 2022-11-03 20:34:01 +01:00 committed by Lincoln Stein
parent 896820a349
commit e97c6db2a3

View File

@ -6,10 +6,23 @@ on:
branches: branches:
- 'main' - 'main'
- 'development' - 'development'
- 'update-docker-debug'
jobs: jobs:
docker: docker:
strategy:
fail-fast: false
matrix:
arch:
- x86_64
- aarch64
include:
- arch: x86_64
conda-env-file: environment.yml
- arch: aarch64
conda-env-file: environment-linux-aarch64.yml
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: build ${{ matrix.arch }}
steps: steps:
- name: prepare docker-tag - name: prepare docker-tag
env: env:
@ -26,9 +39,11 @@ jobs:
with: with:
context: . context: .
file: docker-build/Dockerfile file: docker-build/Dockerfile
platforms: linux/amd64 platforms: Linux/${{ matrix.arch }}
push: false push: false
tags: ${{ env.dockertag }}:latest tags: ${{ env.dockertag }}:${{ matrix.arch }}
build-args: | build-args: |
conda_env_file=${{ matrix.conda-env-file }}
conda_version=py39_4.12.0-Linux-${{ matrix.arch }}
invokeai_git=${{ github.repository }} invokeai_git=${{ github.repository }}
invokeai_branch=${{ github.ref_name }} invokeai_branch=${{ github.ref_name }}