actions version update #15
This file contains 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: Make SCH and PCB review pdf | |
env: | |
PROJECT_NAME: entree | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.kicad_sch' | |
- '**.kicad_pcb' | |
- 'Makefile' | |
- '.github/workflows/review.yml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.kicad_sch' | |
- '**.kicad_pcb' | |
- 'Makefile' | |
- '.github/workflows/review.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/tuna-f1sh/kicad-makefile:latest | |
# mount the workspace path to container workdir /project so accessible by all steps | |
volumes: | |
- ${{ github.workspace }}:/project | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare | |
# https://github.com/actions/runner/issues/2033 | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Check rules | |
run: make rules | |
- name: Run make pdf | |
run: make pdf | |
- name: Upload outputs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.PROJECT_NAME }}-review | |
path: | | |
output/*.pdf | |
output/sch/*.rpt | |
output/pcb/*.rpt |