Skip to content

Commit

Permalink
ci: execute test binaries after using the Action (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed May 7, 2021
1 parent 94e5234 commit 0d6f6bc
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/get_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

# Copyright 2021 Unai Martinez-Corral <[email protected]>
#
# 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
52 changes: 50 additions & 2 deletions .github/workflows/Test.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 0d6f6bc

Please sign in to comment.