Skip to content

Commit

Permalink
ci: add matrix-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Mar 17, 2024
1 parent 3ccd863 commit 1a927e2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/matrix-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Matrix test

on:
workflow_dispatch:

jobs:
test-matrix:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
arch: [x86_64, aarch64]
image_type: [ami, qcow2, vmdk]
build_arch: [x86_64, aarch64]
exclude:
- arch: aarch64
image_type: vmdk
- image_type: vmdk
build_arch: aarch64
- image_type: qcow2
build_arch: aarch64
include:
- image_type: ami
platform: aws
- image_type: qcow2
platform: libvirt
- image_type: vmdk
platform: vsphere
steps:
- name: Check variables
run: |
echo "ARCH: $ARCH"
echo "IMAGE_TYPE: $IMAGE_TYPE"
echo "BUILD_ARCH: $BUILD_ARCH"
echo "PLATFORM: $PLATFORM"
env:
ARCH: ${{ matrix.arch }}
IMAGE_TYPE: ${{ matrix.image_type }}
BUILD_ARCH: ${{ matrix.build_arch }}
PLATFORM: ${{ matrix.platform }}

0 comments on commit 1a927e2

Please sign in to comment.