-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pimoroni/patch-freeze-fix
Include example and library files in user accessible filesystem
- Loading branch information
Showing
15 changed files
with
93 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Zip Files | ||
|
||
on: | ||
push: | ||
pull_request: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Build ${{matrix.name}} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- name: TinyFX | ||
shortname: tiny_fx | ||
board: PIMORONI_TINYFX | ||
|
||
env: | ||
RELEASE_FILE: ${{matrix.shortname}}-${{github.event.release.tag_name || github.sha}} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
path: picofx | ||
|
||
- name: Libs .zip artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{env.RELEASE_FILE}}-libs-only | ||
path: picofx/picofx | ||
|
||
- name: Examples .zip artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{env.RELEASE_FILE}}-examples-only | ||
path: "picofx/examples/${{matrix.shortname}}" | ||
|
||
- name: Libs .zip release asset | ||
if: github.event_name == 'release' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
asset_path: picofx/picofx | ||
upload_url: ${{github.event.release.upload_url}} | ||
asset_name: ${{env.RELEASE_FILE}}-libs-only | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Examples .zip release asset | ||
if: github.event_name == 'release' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
asset_path: "picofx/examples/${{matrix.shortname}}" | ||
upload_url: ${{github.event.release.upload_url}} | ||
asset_name: ${{env.RELEASE_FILE}}-examples-only | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
include("$(PORT_DIR)/boards/manifest.py") | ||
|
||
freeze("lib/") | ||
freeze("frozen_libs/") | ||
|
||
freeze("../../picofx") | ||
# TODO: Convince Chris this is the one true and holy path | ||
# package("picofx", base_path="../../") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
main.py | ||
main.py | ||
examples/*.py | ||
examples/effects/*.py | ||
examples/showcase/*.py | ||
lib/*.py | ||
lib/picofx/*.py | ||
lib/picofx/colour/*.py | ||
lib/picofx/mono/*.py |