Skip to content

Commit

Permalink
CI: moving multiarch job to cron
Browse files Browse the repository at this point in the history
Signed-off-by: malikabhi05 <[email protected]>
  • Loading branch information
malikabhi05 authored and William Roberts committed Sep 27, 2022
1 parent 5b73b25 commit ce7b2d8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CICron
on:
schedule:
- cron: '0 0 * * *'

jobs:
build:
name: Multi-Arch Cron Build
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
strategy:
matrix:
DOCKER_IMAGE: [
"ubuntu-20.04.arm32v7",
"ubuntu-20.04.arm64v8",
"fedora-32.ppc64le"
]
steps:
- name: Setup QEMU
run: |
sudo apt-get update
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Check out repository
uses: actions/checkout@v2
- name: Launch Action
uses:
tpm2-software/ci/runCI@main
with:
PROJECT_NAME: ${{ github.event.repository.name }}
DOCKER_IMAGE: ${{ matrix.docker_image }}
CC: ${{ matrix.compiler }}
MULTIARCH_BUILD: true
- name: failure
if: ${{ failure() }}
run: cat build/test-suite.log || true
29 changes: 0 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,6 @@ jobs:
- name: failure
if: ${{ failure() }}
run: cat build/test-suite.log || true
multi-arch:
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
strategy:
matrix:
DOCKER_IMAGE: [
"ubuntu-20.04.arm32v7",
"ubuntu-20.04.arm64v8",
"fedora-32.ppc64le"
]
steps:
- name: Setup QEMU
run: |
sudo apt-get update
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Check out repository
uses: actions/checkout@v2
- name: Launch Action
uses:
tpm2-software/ci/runCI@main
with:
PROJECT_NAME: ${{ github.event.repository.name }}
DOCKER_IMAGE: ${{ matrix.docker_image }}
CC: ${{ matrix.compiler }}
MULTIARCH_BUILD: true
- name: failure
if: ${{ failure() }}
run: cat build/test-suite.log || true
coverage-test:
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
Expand Down

0 comments on commit ce7b2d8

Please sign in to comment.