This action uses the FuseSoC build system to run regression tests.
name: FuseSoC Example
on:
pull_request: [main]
push: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3 # required
- name: Run Regression Tests
uses: Purdue-SoCET/SoCET-CI@main # core usage
with:
ssh_private_key: ${{secrets.SSH_PRIVATE_KEY}}
ssh_passphrase: ${{secrets.SSH_PASSPHRASE}}
targets: | # List all Test Targets (shell commands)
fusesoc --cores-root . run --target sim --tool verilator socet:aft:gpio:0.1.0
./shell_test.sh
Note: the
targets
input can be any valid shell command or shell script and doesn't need to be related to fusesoc, verilator, etc...
For local testing, you can user act to emulate the GitHub Actions cloud
- figure out how to better use act for testing