From 00b8257d9f31876e35e08e6d556f6f67d76f3908 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Wed, 13 May 2020 17:57:03 +0200 Subject: [PATCH] tests: move cross compilation to github actions This moves the cross compilation tests to github actions, to slightly reduce the number of Travis tests and run them in parallel on github actions. Signed-off-by: Adrian Reber --- .github/workflows/cross-compile.yml | 23 +++++++++++++++++++++++ .travis.yml | 16 ---------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/cross-compile.yml diff --git a/.github/workflows/cross-compile.yml b/.github/workflows/cross-compile.yml new file mode 100644 index 000000000..9545d3df6 --- /dev/null +++ b/.github/workflows/cross-compile.yml @@ -0,0 +1,23 @@ +name: Cross Compile Tests + +on: + push: + branches: [ criu-dev ] + pull_request: + branches: [ criu-dev ] + schedule: + - cron: '55 5 * * *' + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + target: [armv7-cross, aarch64-cross, ppc64-cross, mips64el-cross] + + steps: + - uses: actions/checkout@v2 + - name: Run Cross Compilation Targets + run: > + sudo make -C scripts/travis ${{ matrix.target }} diff --git a/.travis.yml b/.travis.yml index b28bd64f9..e71afa0a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,23 +82,7 @@ jobs: arch: amd64 env: TR_ARCH=fedora-asan dist: bionic - - os: linux - arch: amd64 - env: TR_ARCH=armv7-cross - dist: bionic - - os: linux - arch: amd64 - env: TR_ARCH=aarch64-cross - dist: bionic - - os: linux - arch: amd64 - env: TR_ARCH=ppc64-cross - dist: bionic - env: TR_ARCH=local STREAM_TEST=1 - - os: linux - arch: amd64 - env: TR_ARCH=mips64el-cross - dist: bionic allow_failures: - env: TR_ARCH=docker-test - env: TR_ARCH=docker-test DIST=xenial