new docs article #60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| moving-average-accumulator-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get install -y verilator make | |
| - name: Run Simulation | |
| run: | | |
| cd cores/moving_average_accumulator | |
| make test | |
| dmalib-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| # Install Zig (version 0.13) | |
| - name: Install Zig | |
| uses: mlugg/setup-zig@v1 | |
| with: | |
| zig-version: '0.13.0' # Specify the exact version you are using | |
| # Verify Zig installation | |
| - name: Verify Zig | |
| run: zig version | |
| # Build the project | |
| - name: Build project and run | |
| run: | | |
| cd dmalib | |
| zig build | |
| ./zig-out/bin/dmalib |