Skip to content

Commit

Permalink
github: Update GitHub Actions workflow for KiCad project
Browse files Browse the repository at this point in the history
- Name workflow to 'KiCad Project Build and Validation'
- Add detailed step names for clarity
- Include steps for ERC, DRC, and file generation
- Configure CMake with Ninja build system
- Cache apt packages for efficiency

Signed-off-by: Huang Rui <vowstar@gmail.com>
  • Loading branch information
vowstar committed Feb 28, 2024
1 parent 6d0ebb6 commit 37ba04d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: KiCad Project Build and Validation

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-22.04
name: KiCad Project Build and Validation
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Add KiCad Repository
run: |
sudo add-apt-repository ppa:kicad/kicad-8.0-releases
sudo apt update
- name: Cache Required Packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cmake ninja-build kicad kicad-library-all
version: 1.0
- name: Build and Validate KiCad Project
run: |
pushd ${{github.workspace}}/fmc_basic_peripheral
cmake -B ./build -G Ninja
cmake --build ./build --target erc
cmake --build ./build --target drc
cmake --build ./build --target production
cmake --build ./build --target pdf
popd

0 comments on commit 37ba04d

Please sign in to comment.