You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tinySA/.circleci/config.yml

36 lines
1.0 KiB

version: 2
jobs:
build:
docker:
- image: edy555/arm-embedded:4.9
steps:
- checkout
- run:
name: "Pull Submodules"
command: |
git submodule init
git submodule update --remote
- run:
name: "Build Firmware"
command: make VERSION=\"${CIRCLE_TAG}\"
- run:
name: "Remove obj/lst files"
command: rm -r build/obj build/lst
- run:
name: "Archive artifacts"
command: zip NanoVNA-${CIRCLE_TAG}.zip build/*
- store_artifacts:
path: build
destination: build
publish-github-release:
docker:
- image: circleci/golang:1.8
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/NanoVNA-${CIRCLE_TAG}.zip

Powered by TurnKey Linux.