Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ dev,master ]
pull_request:
branches: [ dev,master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: install pebble
run: uv tool install pebble-tool
- name: install sdk
run: pebble sdk install 4.5
- name: make
run: pebble build
- name: Upload PBW
uses: actions/upload-artifact@v4
with:
name: App
path: ${{ github.workspace }}/build/*.pbw

56 changes: 56 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

# platform
#P="chalk"

VERSION=$(shell cat package.json | grep version | grep -o "[0-9][0-9]*\.[0-9][0-9]*")
NAME=$(shell cat package.json | grep '"name":' | head -1 | sed 's/,//g' |sed 's/"//g' | awk '{ print $2 }')

all: build install

init_overlays:
mkdir -p resources/data
touch resources/data/OVL_aplite.bin
touch resources/data/OVL_basalt.bin
touch resources/data/OVL_chalk.bin
touch resources/data/OVL_diorite.bin

build: init_overlays
pebble build

config:
pebble emu-app-config --emulator $(PEBBLE_EMULATOR)

log:
pebble logs --emulator $(PEBBLE_EMULATOR)

install:
pebble install --emulator $(PEBBLE_EMULATOR)

clean:
pebble clean

size:
pebble analyze-size

logs:
pebble logs --emulator $(PEBBLE_EMULATOR)

phone-logs:
pebble logs --phone ${PEBBLE_PHONE}

screenshot:
pebble screenshot --phone ${PEBBLE_PHONE}

deploy:
pebble install --phone ${PEBBLE_PHONE}

timeline-on:
pebble emu-set-timeline-quick-view on

timeline-off:
pebble emu-set-timeline-quick-view off

wipe:
pebble wipe

.PHONY: all build config log install clean size logs screenshot deploy timeline-on timeline-off wipe phone-logs