Skip to content

Getting main ci working again by reverting half done libration migrations. #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad8_auto_full:latest
runs-on: ubuntu-22.04

permissions:
contents: write
Expand All @@ -33,10 +32,27 @@ jobs:
submodules: recursive

- name: Dependencies
run: git clone https://github.com/Kampi/KiCad.git library
run: |
sudo apt update
wget https://github.com/INTI-CMNB/KiBot/releases/download/v1.7.0/kibot_1.7.0-1_all.deb
sudo apt install ./kibot*_all.deb
wget https://github.com/INTI-CMNB/InteractiveHtmlBom/releases/download/v2.9.0-1/interactivehtmlbom.inti-cmnb_2.9.0-1_all.deb
sudo apt install ./interactivehtmlbom.inti-cmnb*_all.deb
wget https://github.com/INTI-CMNB/KiAuto/releases/download/v2.3.2/kiauto_2.3.2-1_all.deb
sudo apt install ./kiauto*_all.deb
sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
sudo apt install --install-recommends kicad
git clone https://github.com/Kampi/KiCad.git library
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Initialize
run: |
Expand All @@ -54,16 +70,18 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.device_type }}
path: production
path: |
production
if-no-files-found: ignore

- name: Update image
if: ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
- if: ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
name: Update image
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
cp production/${{ matrix.device_type }}/docs/images/PCB_Rendering.png docs/images/Image_Complete.png
git add docs/images/Image_Complete.png
git commit -m "Add image from CI/CD action"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
echo https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push origin ${{ github.base_ref }}
8 changes: 4 additions & 4 deletions project/Sensors.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -5791,7 +5791,7 @@
(justify left)
)
)
(property "Footprint" "Package_LGA:Bosch_LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y"
(property "Footprint" "Package_LGA_Kampi:Bosch_LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y"
(at 48.26 63.5 0)
(effects
(font
Expand Down Expand Up @@ -7132,7 +7132,7 @@
)
)
)
(property "Footprint" "Package_LGA:LGA-12_2x2mm_P0.5mm"
(property "Footprint" "Package_LGA_Kampi:LGA-12_2x2mm_P0.5mm"
(at 248.92 50.8 0)
(effects
(font
Expand Down Expand Up @@ -7849,7 +7849,7 @@
)
)
)
(property "Footprint" "Package_LGA:Bosch_LGA-8_3x3mm_P0.8mm_ClockwisePinNumbering"
(property "Footprint" "Package_LGA_Kampi:Bosch_LGA-8_3x3mm_P0.8mm_ClockwisePinNumbering"
(at 283.21 153.67 0)
(effects
(font
Expand Down Expand Up @@ -8621,7 +8621,7 @@
)
)
)
(property "Footprint" "Package_LGA:Bosch_LGA-10_2x2mm_P0.5mm_ClockwisePinNumbering"
(property "Footprint" "Package_LGA_Kampi:Bosch_LGA-10_2x2mm_P0.5mm_ClockwisePinNumbering"
(at 121.92 62.23 0)
(effects
(font
Expand Down
Loading
Loading