Skip to content

Commit

Permalink
Merge pull request #236 from selfcustody/release-23.09.0​
Browse files Browse the repository at this point in the history
Release 23.09.0​
  • Loading branch information
odudex committed Sep 13, 2023
2 parents 1c6ec0c + 1273da7 commit 6a91cd3
Show file tree
Hide file tree
Showing 1,641 changed files with 168,326 additions and 4,774 deletions.
6 changes: 6 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 100%
threshold: 15%
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Build for M5StickV
if: matrix.device == 'maixpy_m5stickv'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_m5stickv
Expand All @@ -48,20 +48,20 @@ jobs:
- name: Extract firmware for M5StickV
id: extract-m5stickv
if: matrix.device == 'maixpy_m5stickv'
uses: shrink/actions-docker-extract@v1
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-m5stickv:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for M5StickV
if: matrix.device == 'maixpy_m5stickv'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-m5stickv.outputs.destination }}
name: build-m5stickv

- name: Build for Amigo IPS
if: matrix.device == 'maixpy_amigo_ips'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_amigo_ips
Expand All @@ -72,20 +72,20 @@ jobs:
- name: Extract firmware for Amigo IPS
id: extract-amigo-ips
if: matrix.device == 'maixpy_amigo_ips'
uses: shrink/actions-docker-extract@v1
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-amigo-ips:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Amigo IPS
if: matrix.device == 'maixpy_amigo_ips'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-amigo-ips.outputs.destination }}
name: build-amigo-ips

- name: Build for Amigo TFT
if: matrix.device == 'maixpy_amigo_tft'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_amigo_tft
Expand All @@ -96,20 +96,20 @@ jobs:
- name: Extract firmware for Amigo TFT
id: extract-amigo-tft
if: matrix.device == 'maixpy_amigo_tft'
uses: shrink/actions-docker-extract@v1
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-amigo-tft:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Amigo TFT
if: matrix.device == 'maixpy_amigo_tft'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-amigo-tft.outputs.destination }}
name: build-amigo-tft

- name: Build for Bit
if: matrix.device == 'maixpy_bit'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_bit
Expand All @@ -120,20 +120,20 @@ jobs:
- name: Extract firmware for Bit
id: extract-bit
if: matrix.device == 'maixpy_bit'
uses: shrink/actions-docker-extract@v1
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-bit:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Bit
if: matrix.device == 'maixpy_bit'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-bit.outputs.destination }}
name: build-bit

- name: Build for Dock
if: matrix.device == 'maixpy_dock'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_dock
Expand All @@ -144,13 +144,13 @@ jobs:
- name: Extract firmware for Dock
id: extract-dock
if: matrix.device == 'maixpy_dock'
uses: shrink/actions-docker-extract@v1
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-dock:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Dock
if: matrix.device == 'maixpy_dock'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-dock.outputs.destination }}
name: build-dock
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
build-gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
lint-black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- uses: psf/black@stable
with:
options: "--check --verbose"
Expand All @@ -40,11 +40,11 @@ jobs:
lint-pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -59,24 +59,24 @@ jobs:
check-translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Validate translations
run: cd i18n && python3 i18n.py validate

run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -89,13 +89,13 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -105,4 +105,4 @@ jobs:
- name: Build coverage file
run: poetry run pytest --cache-clear --cov src/krux --cov-report xml tests
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ simulator/sd
!tests/firmware-v0.0.0.bin
!tests/firmware-v0.0.0.bin.badsig
!tests/firmware-v0.0.0.bin.sha256.txt
!tests/firmware-v0.0.0.bin.sig
!tests/firmware-v0.0.0.bin.sig
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
url = ../../diybitcoinhardware/embit
[submodule "urtypes"]
path = vendor/urtypes
url = ../urtypes
url = ../../selfcustody/urtypes
[submodule "foundation-ur-py"]
path = vendor/foundation-ur-py
url = ../foundation-ur-py
url = ../../selfcustody/foundation-ur-py
[submodule "firmware/Kboot"]
path = firmware/Kboot
url = ../Kboot
url = ../../selfcustody/Kboot
[submodule "firmware/MaixPy"]
path = firmware/MaixPy
url = ../MaixPy

0 comments on commit 6a91cd3

Please sign in to comment.