From 0d6f6bca48b5b26d809f0bc4cd53fc84ce643cd4 Mon Sep 17 00:00:00 2001 From: umarcor Date: Fri, 7 May 2021 14:43:22 +0200 Subject: [PATCH] ci: execute test binaries after using the Action (#7) --- .github/get_tests.sh | 20 +++++++++++++++ .github/workflows/Test.yml | 52 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 70 insertions(+), 2 deletions(-) create mode 100755 .github/get_tests.sh mode change 100644 => 100755 .github/workflows/Test.yml diff --git a/.github/get_tests.sh b/.github/get_tests.sh new file mode 100755 index 0000000..6c0fabb --- /dev/null +++ b/.github/get_tests.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# Copyright 2021 Unai Martinez-Corral +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +for item in aarch64 riscv64; do + wget https://github.com/dbhi/qus/releases/download/v0.0.6-v5.2%2Bdfsg-3/test-"$item" + chmod +x test-"$item" +done diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml old mode 100644 new mode 100755 index 2643e37..2cc8bea --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -187,8 +187,13 @@ jobs: - uses: ./action + - run: | + ./.github/get_tests.sh + ./test-aarch64 + ./test-riscv64 + - Action-ARM: + Action: needs: Manifests runs-on: ubuntu-latest steps: @@ -197,7 +202,50 @@ jobs: - uses: ./action with: - targets: arm aarch64 + targets: riscv64 aarch64 + + - run: | + ./.github/get_tests.sh + ./test-aarch64 + ./test-riscv64 + + + Action-literal: + needs: Manifests + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v2 + + - uses: dbhi/qus/action@main + with: + targets: | + riscv64 + aarch64 + + - run: | + ./.github/get_tests.sh + ./test-aarch64 + ./test-riscv64 + + + Action-folded: + needs: Manifests + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v2 + + - uses: dbhi/qus/action@main + with: + targets: > + riscv64 + aarch64 + + - run: | + ./.github/get_tests.sh + ./test-aarch64 + ./test-riscv64 Test: