summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorRoy Ivy III <rivy.dev@gmail.com>2019-11-21 00:07:06 -0600
committerPierre Peltier <dev@halium.fr>2019-12-04 11:09:11 +0100
commit2e58be5a7ae87459be744c2d338358bed455cab0 (patch)
tree191e59a3e368f52ca7c542f261a6bee6d4fb843f /.github
parent435954375f3712275db3f2f7d947a6049e69d921 (diff)
maint/cicd ~ fix arm-* build target testing
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/CICD.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml
index d57aaf3..53d4647 100644
--- a/.github/workflows/CICD.yml
+++ b/.github/workflows/CICD.yml
@@ -54,6 +54,13 @@ jobs:
EXE_suffix: ""
steps:
- uses: actions/checkout@v1
+ - name: Setup target-specific options
+ id: cargo_options
+ shell: bash
+ run: |
+ # test only binary for arm-type targets
+ unset TEST_OPTIONS; case ${{ matrix.target }} in arm-*) TEST_OPTIONS="--bin ${PROJECT_NAME}";; esac;
+ echo ::set-output name=TEST_OPTIONS::${TEST_OPTIONS}
- name: Parse branch info
id: branch_info
shell: bash
@@ -90,7 +97,7 @@ jobs:
with:
use-cross: true
command: test
- args: --target=${{ matrix.target }}
+ args: --target=${{ matrix.target }} ${{ steps.cargo_options.outputs.TEST_OPTIONS}}
- name: Archive executable artifacts
uses: actions/upload-artifact@master
with: