Comment out second build #19
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: Generate PCB datapack | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
KiKit: | |
name: Panel | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- name: Checkout (only last commit) | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get KiCad project name | |
run: echo "PROJECT_NAME=$(basename *.kicad_pro .kicad_pro)" >> $GITHUB_ENV | |
- name: Clone and Checkout our KiBot config | |
uses: actions/checkout@v4 | |
with: | |
repository: Cimos/kibot-config | |
path: ./kibot-config | |
ref: 1-add-penalization-to-build | |
- name: Check for panel file existence | |
id: check_files | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "panelization.yaml" | |
- name: Generate panel file | |
if: steps.check_files.outputs.files_exists == 'true' | |
uses: Cimos/kibot-config@1-add-penalization-to-build | |
with: | |
config: kibot-config/build.panel.yaml | |
dir: output | |
schema: '${{ env.PROJECT_NAME }}.kicad_sch' | |
board: '${{ env.PROJECT_NAME }}.kicad_pcb' | |
logfile: 'logfile/logfile.log' | |
verbose: 3 | |
# - name: Build panel datapack | |
# if: steps.check_files.outputs.files_exists == 'true' | |
# uses: Cimos/kibot-config@1-add-penalization-to-build | |
# with: | |
# config: kibot-config/build.kibot.yaml | |
# dir: output | |
# schema: '${{ env.PROJECT_NAME }}.kicad_sch' | |
# board: '${{ env.PROJECT_NAME }}.kicad_pcb' | |
# logfile: 'logfile/logfile.log' | |
# # verbose: 2 | |
- name: Upload logfile | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.PROJECT_NAME }}-panel-logfile | |
path: logfile/logfile.log | |
- name: Upload datapack results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.PROJECT_NAME }}-panel-datapack | |
path: output |