Skip to content

Commit 14c8a6b

Browse files
authored
Merge pull request #234 from sparkfun/pcUpdates
Changes to allow us to add the libraries to the KiCad PCM
2 parents a2ae132 + 19f8990 commit 14c8a6b

File tree

903 files changed

+66651
-66364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

903 files changed

+66651
-66364
lines changed

.github/workflows/build_asset.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build Asset
2+
on:
3+
workflow_dispatch:
4+
branches:
5+
6+
jobs:
7+
build:
8+
9+
name: Build
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@master
15+
16+
- name: Setup Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Update zip
22+
run: |
23+
cd pcm
24+
python build.py
25+
cd build
26+
echo "ZIP_NAME_WITH=$(ls SparkFun-KiCad-Libraries*-with-pcm.zip)" >> $GITHUB_ENV
27+
echo "PCM_NAME_WITH=$(ls SparkFun-KiCad-Libraries*-with-pcm.zip | rev | cut -c 5- | rev)" >> $GITHUB_ENV
28+
echo "ZIP_NAME_WITHOUT=$(ls SparkFun-KiCad-Libraries*-without-pcm.zip)" >> $GITHUB_ENV
29+
echo "PCM_NAME_WITHOUT=$(ls SparkFun-KiCad-Libraries*-without-pcm.zip | rev | cut -c 5- | rev)" >> $GITHUB_ENV
30+
31+
- name: Upload with-pcm build to action - avoid double-zip
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: ${{ env.PCM_NAME_WITH }}
35+
path: ./pcm/build/${{ env.PCM_NAME_WITH }}
36+
retention-days: 7
37+
38+
- name: Upload without-pcm build to action - avoid double-zip
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: ${{ env.PCM_NAME_WITHOUT }}
42+
path: ./pcm/build/${{ env.PCM_NAME_WITHOUT }}
43+
retention-days: 7
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Asset for Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
build:
8+
9+
name: Build
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@master
15+
16+
- name: Setup Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Update zip
22+
run: |
23+
cd pcm
24+
python build.py
25+
cd build
26+
echo "ZIP_NAME_WITH=$(ls SparkFun-KiCad-Libraries*-with-pcm.zip)" >> $GITHUB_ENV
27+
echo "PCM_NAME_WITH=$(ls SparkFun-KiCad-Libraries*-with-pcm.zip | rev | cut -c 5- | rev)" >> $GITHUB_ENV
28+
echo "ZIP_NAME_WITHOUT=$(ls SparkFun-KiCad-Libraries*-without-pcm.zip)" >> $GITHUB_ENV
29+
echo "PCM_NAME_WITHOUT=$(ls SparkFun-KiCad-Libraries*-without-pcm.zip | rev | cut -c 5- | rev)" >> $GITHUB_ENV
30+
31+
- name: Publish release
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
files: |
35+
./pcm/build/${{ env.ZIP_NAME_WITH }}
36+
./pcm/build/${{ env.ZIP_NAME_WITHOUT }}

0 commit comments

Comments
 (0)