Browse Source

Added drone integration

tags/1.0^0
PHENOM 1 year ago
parent
commit
95281d08f4
2 changed files with 20 additions and 1 deletions
  1. 19
    0
      .drone.yml
  2. 1
    1
      src/Main.spin

+ 19
- 0
.drone.yml View File

@@ -0,0 +1,19 @@
pipeline:
build_binary:
image: davidzemon/propworld
commands:
- openspin -b ./src/Main.spin -o demoboard.binary
zip:
image: alpine-zip
commands:
- zip ${DRONE_REPO_NAME}_${DRONE_TAG}_b${DRONE_BUILD_NUMBER}.zip demoboard.binary
when:
event: tag
gitea_release:
image: plugins/gitea-release
secrets: [ gitea_token ]
base_url: https://git.phenomic.net
files: ${DRONE_REPO_NAME}_${DRONE_TAG}_b${DRONE_BUILD_NUMBER}.zip
title: ${DRONE_REPO_NAME} ${DRONE_TAG}
when:
event: tag

+ 1
- 1
src/Main.spin View File

@@ -126,7 +126,7 @@ pri ledBlinking | i
addToLog(string("Key 2"))
if ((ina & (1<<2)) == 0)
addToLog(string("Key 3"))

waitcnt(cnt + (clkfreq/2))
outa^=24

Loading…
Cancel
Save