Skip to content

GitHub Action for Continuous Integration of SoC with FuseSoC

Notifications You must be signed in to change notification settings

Purdue-SoCET/SoCET-CI

Repository files navigation

FuseSoC Action

This action uses the FuseSoC build system to run regression tests.

Example Usage

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...

Testing with ACT

For local testing, you can user act to emulate the GitHub Actions cloud

References:

TODO:

  • figure out how to better use act for testing

About

GitHub Action for Continuous Integration of SoC with FuseSoC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages