Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #467 from sifive/actions-test-standalone
Browse files Browse the repository at this point in the history
Test standalone project creation and build in GitHub Actions
  • Loading branch information
nategraff-sifive authored Apr 16, 2020
2 parents 229fcb0 + 3a669e8 commit 0dfa171
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ jobs:
- name: 'Run examples on QEMU'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" freedom-e-sdk ./scripts/test-qemu-targets
- name: 'Build examples as standalone projects'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" freedom-e-sdk ./scripts/test-standalone
14 changes: 14 additions & 0 deletions scripts/test-standalone
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -euxo pipefail

PROGRAMS=(hello example-freertos-minimal )
TARGET=qemu-sifive-e31

for PROGRAM in ${PROGRAMS[@]} ; do
STANDALONE_DEST="${PROGRAM}-standalone"

make PROGRAM=${PROGRAM} TARGET=${TARGET} STANDALONE_DEST=${STANDALONE_DEST} standalone

pushd ${STANDALONE_DEST} && make software && popd
done

0 comments on commit 0dfa171

Please sign in to comment.