From 2e58be5a7ae87459be744c2d338358bed455cab0 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Thu, 21 Nov 2019 00:07:06 -0600 Subject: [PATCH] maint/cicd ~ fix arm-* build target testing --- .github/workflows/CICD.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: