Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimos committed Aug 18, 2024
1 parent 604908a commit 7532eca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/datapack.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: Generate Datapack
on: [push, pull_request]
on:
push:
branches:
- '**'
pull_request:
branches:
- master

jobs:
build:
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
Expand All @@ -26,13 +35,14 @@ jobs:
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
logfile: 'logfile.log'
# verbose: 2
logfile: 'logfile/logfile.log'
verbose: 2

- name: Upload logfile
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-lofile
name: ${{ env.PROJECT_NAME }}-logfile
path: logfile

- name: Upload Results
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/panelization.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: Generate PCB panel datapack
on: [push, pull_request]
on:
push:
branches:
- '**'
pull_request:
branches:
- master

jobs:
KiKit:
name: Test Build
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad8_auto_full: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)
Expand Down Expand Up @@ -47,14 +54,15 @@ jobs:
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
logfile: 'logfile.log'
logfile: 'logfile/logfile.log'
# verbose: 2

- name: Upload logfile
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-lofile
path: logfile
name: ${{ env.PROJECT_NAME }}-logfile
path: logfile.log

- name: Upload datapack results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7532eca

Please sign in to comment.