Skip to content

Support builds-on/runs-on arm #6

Support builds-on/runs-on arm

Support builds-on/runs-on arm #6

name: Integration tests
on:
pull_request:
jobs:
extra-args:
runs-on: ubuntu-latest
outputs:
args: ${{ steps.flags.outputs.args }}
steps:
- name: Determine extra args
id: flags
env:
TITLE: ${{ github.event.pull_request.title }}
JOB: ${{ github.job }}
WORKFLOW: ${{ github.workflow }}
run: |
EXTRA_ARGS="--crash-dump=on-failure"
if [[ "$TITLE" == *"[COS]"* ]]; then
EXTRA_ARGS="$EXTRA_ARGS --cos"
fi
echo "args=$EXTRA_ARGS" >> "$GITHUB_OUTPUT"
# build-all-charms:
# needs: [extra-args]
# strategy:
# matrix:
# arch:
# - arch: amd64
# runs-on-label: X64
# - arch: arm64
# runs-on-label: ARM64
# uses: ./.github/workflows/build-charm.yaml
# with:
# working-directory: "./charms/worker/"
# arch: ${{ matrix.arch.arch }}
# runs-on-label: ${{ matrix.arch.runs-on-label }}
integration-tests:
uses: addyess/operator-workflows/.github/workflows/integration_test.yaml@multiarch-building
needs: [extra-args]
secrets: inherit
strategy:
matrix:
arch:
- {id: amd64, builder-label: ubuntu-22.04, tester-label: large}
# - {id: arm64, builder-label: ARM64, tester-label: ARM64}
with:
identifier: ${{matrix.arch.id}}
provider: lxd
juju-channel: 3.3/stable
extra-arguments: ${{needs.extra-args.outputs.args}}
load-test-enabled: false
builder-runner-label: ${{matrix.arch.builder-label}}
modules: '["test_k8s", "test_etcd"]'
zap-enabled: false
# self-hosted-runner: true
# self-hosted-runner-label: ${{matrix.arch.tester-label}}
trivy-fs-enabled: true
trivy-image-config: "trivy.yaml"
tmate-debug: true
test-timeout: 120
test-tox-env: integration
working-directory: ./charms/