Skip to content

Commit 40d5cde

Browse files
committed
initial commit
0 parents  commit 40d5cde

File tree

5 files changed

+107
-0
lines changed

5 files changed

+107
-0
lines changed

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build/*
2+
.env
3+
bundles
4+
build_deps
5+
build-circuitpython*

Diff for: .gitmodules

Whitespace-only changes.

Diff for: circuitpython_org_library_list.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CircuitPython Org Libraries
2+
![Blinka Reading](https://raw.githubusercontent.com/adafruit/circuitpython-weekly-newsletter/gh-pages/assets/archives/22_1023blinka.png)
3+
4+
Here is a listing of current CircuitPython Org Libraries. There are __ libraries available.
5+
6+
## Drivers:
7+
8+
9+
## Helpers:
10+

Diff for: not.github/workflows/build.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build CI
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Dump GitHub context
10+
env:
11+
GITHUB_CONTEXT: ${{ toJson(github) }}
12+
run: echo "$GITHUB_CONTEXT"
13+
- name: Set up Python 3.6
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.6
17+
- name: Versions
18+
run: |
19+
python3 --version
20+
- uses: actions/checkout@v1
21+
with:
22+
submodules: true
23+
- name: Install deps
24+
run: |
25+
sudo apt-get install -y gettext gawk
26+
pip install -r requirements.txt
27+
- name: Library version
28+
run: git describe --dirty --always --tags
29+
- name: Build assets
30+
run: ./build.sh

Diff for: not.github/workflows/release.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Release Actions
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
upload-release-assets:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Dump GitHub context
12+
env:
13+
GITHUB_CONTEXT: ${{ toJson(github) }}
14+
run: echo "$GITHUB_CONTEXT"
15+
- name: Translate Repo Name For Build Tools filename_prefix
16+
id: repo-name
17+
run: |
18+
echo ::set-output name=repo-name::$(
19+
echo ${{ github.repository }} |
20+
awk -F '\/' '{ print tolower($2) }' |
21+
tr '_' '-'
22+
)
23+
- name: Set up Python 3.6
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: 3.6
27+
- name: Versions
28+
run: |
29+
python3 --version
30+
- uses: actions/checkout@v1
31+
with:
32+
submodules: true
33+
- name: Install deps
34+
run: |
35+
sudo apt-get install -y gettext gawk
36+
pip install -r requirements.txt
37+
- name: Package Folder Prefix For circuitpython-build-tools (Community Bundle Specific)
38+
id: pkg-folder
39+
run: |
40+
echo ::set-output name=prefix::$(
41+
ls -RUx |
42+
gawk -F '\n' '{ match($1, /(drivers|helpers)\/(.+)\/(.+)\:/, arr) ; if (length(arr[0]) > 0 && match(arr[3], arr[2]) > 0) printf "%s, ", arr[3] }' |
43+
gawk '{ trimmed = substr($0, 1, length($0) - 2) ; print "\"" trimmed "\"" }'
44+
)
45+
- name: Build assets
46+
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2 --package_folder_prefix ${{ steps.pkg-folder.outputs.prefix }}
47+
- name: Upload Release Assets
48+
# the 'official' actions version does not yet support dynamically
49+
# supplying asset names to upload. @csexton's version chosen based on
50+
# discussion in the issue below, as its the simplest to implement and
51+
# allows for selecting files with a pattern.
52+
# https://github.com/actions/upload-release-asset/issues/4
53+
#uses: actions/[email protected]
54+
uses: csexton/release-asset-action@master
55+
with:
56+
pattern: "bundles/*"
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
- name: Upload Assets To AWS S3
59+
env:
60+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
61+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
62+
run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bundles/ s3://adafruit-circuit-python/bundles/community --recursive --no-progress --region us-east-1"

0 commit comments

Comments
 (0)