apcountryman / prototype-kicad-project-ci-cd

KiCad project CI/CD prototype.
Other
0 stars 1 forks source link

Add schematic PDF(s) generation CI job #15

Closed apcountryman closed 3 years ago

apcountryman commented 3 years ago

Add schematic PDF(s) generation CI job. The proposed design was outlined in #13.

for schematic in "${schematics[@]}"; do if ! "$repository/utilities/KiAuto/src/eeschema_do" export -a "$schematic" "$repository/schematic-pdfs"; then abort fi done

- [ ] Add schematic PDF(s) generation (and archiving) CI job to `.github/workflows/ci.yml`:
```yaml
generate-schematic-pdfs:
    name: Generate schematic PDF(s)
    runs-on: ubuntu-20.04
    steps:
        - uses: actions/checkout@v2
          with:
              submodules: recursive
        - name: Generate schematic PDF(s)
          shell: bash
          run: ./ci/generate-schematic-pdfs
        - name: Archive generated schematic PDF(s)
          uses: actions/upload-artifact@v2
          with:
            name: schematic-pdfs
            path: schematic-pdfs
            retention-days: 7