Skip to content
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

Update build.yml (hopefully slightly simplified) #74

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e3b3920
i'm idiot.
blubbsy Sep 26, 2024
4384acd
backup for the builder
blubbsy Sep 28, 2024
c142a4b
Update and rename build copy.yml to build2.yml
blubbsy Sep 28, 2024
2ee6d28
Update build2.yml
blubbsy Sep 28, 2024
f1fbe5d
Update build2.yml
blubbsy Sep 28, 2024
fd5adfd
Update build2.yml
blubbsy Sep 28, 2024
e057e5a
Update build2.yml
blubbsy Sep 28, 2024
5c63c8f
Update build2.yml
blubbsy Sep 28, 2024
b914e80
Update build2.yml
blubbsy Sep 28, 2024
f5a5acb
Update build2.yml
blubbsy Sep 28, 2024
73a5b61
Update build2.yml
blubbsy Sep 28, 2024
69441bd
Update build2.yml
blubbsy Sep 28, 2024
8075fc9
Update build2.yml
blubbsy Sep 28, 2024
cb5fb97
Update zswatch.kibot.yaml
blubbsy Sep 28, 2024
2232db0
Update build2.yml
blubbsy Sep 28, 2024
3e006f3
Update build2.yml
blubbsy Sep 28, 2024
5741f3c
Update zswatch.kibot.yaml
blubbsy Sep 28, 2024
b87c389
Update zswatch.kibot.yaml
blubbsy Sep 28, 2024
dce9237
Update zswatch.kibot.yaml
blubbsy Sep 28, 2024
ccc4e4f
Update build2.yml
blubbsy Sep 28, 2024
8be7652
Update build2.yml
blubbsy Sep 28, 2024
392b640
Update build2.yml
blubbsy Sep 28, 2024
8c95ba9
Update build2.yml
blubbsy Sep 29, 2024
75e9b66
Update zswatch.kibot.yaml
blubbsy Sep 29, 2024
f6329f2
Update build2.yml
blubbsy Sep 29, 2024
b73b838
Update build2.yml
blubbsy Sep 29, 2024
949ed0e
Update build2.yml
blubbsy Sep 29, 2024
6dd82ce
Update build2.yml
blubbsy Sep 29, 2024
12e5d5d
Update zswatch.kibot.yaml
blubbsy Sep 29, 2024
67211e6
Update build2.yml
blubbsy Sep 29, 2024
a7a02b1
Update build.yml
blubbsy Sep 29, 2024
67b4a96
Delete .github/workflows/build2.yml
blubbsy Sep 29, 2024
582d2d9
Update build.yml
blubbsy Sep 30, 2024
defd07d
Merge branch 'main' of https://github.com/blubbsy/ZSWatch-HW
blubbsy Sep 30, 2024
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
32 changes: 7 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build2

on:
workflow_dispatch:
Expand All @@ -8,7 +8,8 @@ on:

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

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

- name: Dependencies
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
run: 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 @@ -69,18 +53,16 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.device_type }}
path: |
production
path: production
if-no-files-found: ignore

- if: ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
name: Update image
- name: Update image
if: ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
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 }}
Loading