Skip to content

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGuyDanish committed Oct 12, 2024
1 parent b18506f commit 748d45c
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,22 @@ jobs:
uses: actions/checkout@main
with:
repository: 'openjbod/micropython'
ref: 'v1.23.0'
submodules: 'true'
path: 'openjbod'

- name: Checkout OpenJBOD software
uses: actions/checkout@main
with:
path: 'software'

- name: "Install build tools"
run: "sudo apt-get install pkg-config gcc-arm-none-eabi libnewlib-arm-none-eabi"
- name: Install build tools
run: sudo apt-get install pkg-config gcc-arm-none-eabi libnewlib-arm-none-eabi

- name: "Setup Python"
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: "Install Python requirements"
- name: Install Python requirements
run: "pip install freezefs"

- name: Gzip static files
Expand All @@ -51,9 +49,28 @@ jobs:
- name: Create release zip
run: "zip openjbod.zip -r software/* -x README.md LICENSE.md @"

- name: Upload release zip
uses: actions/upload-artifact@v4
name: openjbod.zip
path: openjbod.zip

- name: Freeze OpenJBOD Software
run: python3 -m freezefs software/ micropython/ports/rp2/boards/OPENJBOD_RP2040/frozen_openjbod.py --on-import=extract --compress -t / -ov always

- name: Build mpy-cross
run: make -j $(nproc) -C micropython/mpy-cross/

- name: Fetch MicroPython submodules
run: make -j $(nproc) -C micropython/ports/rp2 BOARD=OPENJBOD_RP2040 submodules

- name: Build MicroPython
run: make -j $(nproc) -C micropython/ports/rp2 BOARD_OPENJBOD_RP2040

- name: Upload MicroPython artifact
uses: actions/upload-artifact@v4
name: openjbod-micropython.uf2
path: micropython/ports/rp2/build-OPENJBOD_RP2040/firmware.uf2

- name: Create release
id: create_release
uses: actions/create-release@latest
Expand Down

0 comments on commit 748d45c

Please sign in to comment.