summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug-report.yaml59
-rw-r--r--.github/ISSUE_TEMPLATE/feature-request.yaml41
-rw-r--r--.github/workflows/main.yml32
3 files changed, 113 insertions, 19 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml
new file mode 100644
index 00000000..efcba56c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug-report.yaml
@@ -0,0 +1,59 @@
+name: Bug Report
+description: File a bug report
+title: "[Bug]: "
+labels: ["bug"]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ **Thanks for taking the time to fill out this bug report!**
+ *Please, before opening a bug report, check if similar issues already exist. In that case, use those issues to provide your feedback instead.*
+ - type: checkboxes
+ attributes:
+ options:
+ - label: I searched for similar bug reports and found none was relevant.
+ required: true
+ - type: input
+ id: desc-brief
+ attributes:
+ label: What happened?
+ description: A one-line description of the bug.
+ placeholder: "Ex. I woke up as a Kafkian insect this morning."
+ validations:
+ required: true
+ - type: input
+ id: desc-expected
+ attributes:
+ label: What should happen instead?
+ description: The behaviour you were expecting to see.
+ placeholder: "Ex. I was expecting to wake up as a human."
+ - type: textarea
+ id: desc-steps
+ attributes:
+ label: Reproduction steps
+ description: "How do you trigger this bug? Please walk us through it step by step."
+ validations:
+ required: true
+ - type: textarea
+ id: desc-long
+ attributes:
+ label: More details?
+ description: Give us more details about the bug and any personal attempts you made to fix it.
+ placeholder: Tell us more!
+ - type: input
+ id: version
+ attributes:
+ label: Version
+ description: |
+ What [version of the firmware](https://github.com/JF002/InfiniTime/blob/develop/doc/gettingStarted/gettingStarted-1.0.md#how-to-check-the-version-of-infinitime-and-the-bootloader) are you running?
+ If you are running an older version, please consider [updating to the latest firmware](https://github.com/JF002/InfiniTime/blob/develop/doc/gettingStarted/gettingStarted-1.0.md#how-to-update-your-pinetime).
+ If you are running directly from git, specify the branch or the commit hash directly.
+ placeholder: "Ex. v1.6.0 or develop or fc922b60"
+ validations:
+ required: true
+ - type: input
+ id: companion-app
+ attributes:
+ label: Companion app
+ description: Which companion app are you using (if relevant)?
+ placeholder: "Ex. Gadgetbridge v0.60.0, Siglo v0.9.4"
diff --git a/.github/ISSUE_TEMPLATE/feature-request.yaml b/.github/ISSUE_TEMPLATE/feature-request.yaml
new file mode 100644
index 00000000..092ef909
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature-request.yaml
@@ -0,0 +1,41 @@
+name: Feature Request
+description: File a feature request
+title: ""
+labels: ["feature request"]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ **Thanks for taking the time to fill out this feature request!**
+ *Please, before opening a feature request, check if similar issues already exist. In that case, use those issues to provide your feedback instead.*
+ - type: checkboxes
+ attributes:
+ options:
+ - label: I searched for similar feature request and found none was relevant.
+ required: true
+ - type: markdown
+ attributes:
+ value: |
+ **Note:** keep in mind that, while InfiniTime is usable, it is still under heavy development and as such it is continuously evolving.
+ Some features you want to see implemented might not be compatible with the current state of the project, or might not even be suitable to include *in the firmware* of the watch.
+ - type: input
+ id: desc-brief
+ attributes:
+ label: Pitch us your idea!
+ description: A one-line elevator pitch of the feature you'd like to see implemented.
+ placeholder: "Ex. My dog wants InfiniTime on its smart collar."
+ validations:
+ required: true
+ - type: textarea
+ id: desc-long
+ attributes:
+ label: Description
+ description: |
+ Give us a detailed description of the feature you are proposing. Mockups or a description of the possible use cases are highly appreciated.
+ Tell us why this should be included in the firmware.
+ placeholder: "Ex. Here is a drawing of my dog wearing an InfiniTime collar and smiling."
+ - type: markdown
+ id: companion-app
+ attributes:
+ value: |
+ If this requires features missing from other software (for example a companion app), please take care of opening any relevant feature request over there as well.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4a71b7e0..bd24359a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -9,13 +9,13 @@ name: Build PineTime Firmware
# When to run this Workflow...
on:
- # Run this Workflow when files are updated (Pushed) in the "master" Branch
+ # Run this Workflow when files are updated (Pushed) in the "master" and "develop" Branch
push:
- branches: [ master ]
+ branches: [ master, develop ]
- # Also run this Workflow when a Pull Request is created or updated in the "master" Branch
+ # Also run this Workflow when a Pull Request is created or updated in the "master" and "develop" Branch
pull_request:
- branches: [ master ]
+ branches: [ master, develop ]
# Steps to run for the Workflow
jobs:
@@ -44,7 +44,7 @@ jobs:
- name: Install Embedded Arm Toolchain arm-none-eabi-gcc
if: steps.cache-toolchain.outputs.cache-hit != 'true' # Install toolchain if not found in cache
- uses: fiam/arm-none-eabi-gcc@v1.0.2
+ uses: fiam/arm-none-eabi-gcc@v1.0.4
with:
# GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
release: 9-2020-q2
@@ -83,10 +83,11 @@ jobs:
if: steps.cache-mcuboot.outputs.cache-hit != 'true' # Install MCUBoot if not found in cache
run: |
cd ${{ runner.temp }}
- git clone --branch v1.5.0 https://github.com/JuulLabs-OSS/mcuboot
+ git clone --branch v1.7.2 https://github.com/mcu-tools/mcuboot
- name: Install imgtool dependencies
- run: pip3 install --user -r ${{ runner.temp }}/mcuboot/scripts/requirements.txt
+ run: |
+ pip3 install --user -r ${{ runner.temp }}/mcuboot/scripts/requirements.txt
- name: Install adafruit-nrfutil
run: |
@@ -99,6 +100,8 @@ jobs:
- name: Checkout source files
uses: actions/checkout@v2
+ with:
+ submodules: recursive
- name: Show files
run: set ; pwd ; ls -l
@@ -110,7 +113,7 @@ jobs:
run: |
mkdir -p build
cd build
- cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=${{ runner.temp }}/arm-none-eabi -DNRF5_SDK_PATH=${{ runner.temp }}/nrf5_sdk -DUSE_OPENOCD=1 ../
+ cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=${{ runner.temp }}/arm-none-eabi -DNRF5_SDK_PATH=${{ runner.temp }}/nrf5_sdk -DUSE_OPENOCD=1 -DBUILD_DFU=1 ../
#########################################################################################
# Make and Upload DFU Package
@@ -125,19 +128,10 @@ jobs:
cd build
make pinetime-mcuboot-app
- - name: Create firmware image
- run: |
- # The generated firmware binary looks like "pinetime-mcuboot-app-0.8.2.bin"
- ls -l build/src/pinetime-mcuboot-app*.bin
- ${{ runner.temp }}/mcuboot/scripts/imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header build/src/pinetime-mcuboot-app*.bin build/src/pinetime-mcuboot-app-img.bin
- ${{ runner.temp }}/mcuboot/scripts/imgtool.py verify build/src/pinetime-mcuboot-app-img.bin
-
- - name: Create DFU package
+ - name: Unzip DFU package
run: |
- ~/.local/bin/adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application build/src/pinetime-mcuboot-app-img.bin build/src/pinetime-mcuboot-app-dfu.zip
- unzip -v build/src/pinetime-mcuboot-app-dfu.zip
# Unzip the package because Upload Artifact will zip up the files
- unzip build/src/pinetime-mcuboot-app-dfu.zip -d build/src/pinetime-mcuboot-app-dfu
+ unzip build/src/pinetime-mcuboot-app-dfu*.zip -d build/src/pinetime-mcuboot-app-dfu
- name: Upload DFU package
uses: actions/upload-artifact@v2