Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
536bb73
Create ccpp.yml
JeonghunLee Feb 13, 2020
91e3649
make all
JeonghunLee Feb 13, 2020
b18b14b
Add .circleci/config.yml
JeonghunLee Feb 13, 2020
34b410d
Add .circleci/config.yml
JeonghunLee Nov 14, 2023
fe5fe32
Update config.yml
JeonghunLee Nov 14, 2023
fcc31bc
Update config.yml
JeonghunLee Nov 14, 2023
88394c0
Update config.yml
JeonghunLee Nov 14, 2023
3344579
Update config.yml
JeonghunLee Nov 14, 2023
10b7f59
Update config.yml
JeonghunLee Nov 14, 2023
c75493a
Update config.yml
JeonghunLee Nov 14, 2023
2850013
Update config.yml
JeonghunLee Nov 14, 2023
66820fb
Update config.yml
JeonghunLee Nov 14, 2023
4804a1b
Update config.yml
JeonghunLee Nov 14, 2023
454200a
Update config.yml
JeonghunLee Nov 14, 2023
f52985b
Update config.yml
JeonghunLee Nov 14, 2023
cac76b0
Update config.yml
JeonghunLee Nov 14, 2023
e55b38a
Update config.yml
JeonghunLee Nov 14, 2023
d6ef9d1
Update config.yml
JeonghunLee Nov 14, 2023
5efb9c7
Update config.yml
JeonghunLee Nov 14, 2023
ebb3709
Update config.yml
JeonghunLee Nov 14, 2023
1328a5e
Update config.yml
JeonghunLee Nov 16, 2023
b1f513a
Update readme.md
JeonghunLee Nov 16, 2023
5ad9059
Update readme.md
JeonghunLee Nov 16, 2023
00d199b
Update readme.md
JeonghunLee Nov 16, 2023
10a2b6f
Update config.yml
JeonghunLee Nov 16, 2023
a493a5b
Update config.yml
JeonghunLee Nov 16, 2023
aca134c
Update readme.md
JeonghunLee Nov 16, 2023
b997da8
Update readme.md
JeonghunLee Nov 16, 2023
dc253f4
Update readme.md
JeonghunLee Nov 16, 2023
fcac7a7
Update readme.md
JeonghunLee Nov 16, 2023
6aec212
Update readme.md
JeonghunLee Nov 16, 2023
2e38fd6
Update config.yml
JeonghunLee Nov 16, 2023
2053536
Update config.yml
JeonghunLee Nov 16, 2023
7453637
Update config.yml
JeonghunLee Nov 16, 2023
a3e655e
Update config.yml
JeonghunLee Nov 16, 2023
f88c164
Update config.yml
JeonghunLee Nov 16, 2023
fc9a28a
Update config.yml
JeonghunLee Nov 16, 2023
e8bad78
Update config.yml
JeonghunLee Nov 16, 2023
474b5ef
Update config.yml
JeonghunLee Nov 16, 2023
d9c8bc4
Update config.yml
JeonghunLee Nov 16, 2023
3162d82
Update readme.md
JeonghunLee Nov 16, 2023
3747e51
Update readme.md
JeonghunLee Nov 16, 2023
6127b50
Update readme.md
JeonghunLee Nov 16, 2023
e582adf
Update readme.md
JeonghunLee Nov 16, 2023
ff189cf
Update readme.md
JeonghunLee Nov 16, 2023
488e9f2
Update config.yml
JeonghunLee Nov 16, 2023
41c4d69
Update config.yml
JeonghunLee Nov 16, 2023
a94e819
Update config.yml
JeonghunLee Nov 16, 2023
0d95a11
Update config.yml
JeonghunLee Nov 16, 2023
ee8af4b
Update config.yml
JeonghunLee Nov 16, 2023
950a823
Update config.yml
JeonghunLee Nov 16, 2023
13d5995
Update config.yml
JeonghunLee Nov 16, 2023
3b8bec2
Update config.yml
JeonghunLee Nov 16, 2023
6083315
Update config.yml
JeonghunLee Nov 16, 2023
725acfe
Update config.yml
JeonghunLee Nov 16, 2023
1ac57f6
Update config.yml
JeonghunLee Nov 16, 2023
46ed00c
Update config.yml
JeonghunLee Nov 16, 2023
1f0941b
Update config.yml
JeonghunLee Nov 16, 2023
52eee76
Update config.yml
JeonghunLee Nov 16, 2023
de27691
Update config.yml
JeonghunLee Nov 16, 2023
832df06
Update ccpp.yml
JeonghunLee Nov 16, 2023
62ee9a7
Update ccpp.yml
JeonghunLee Nov 16, 2023
a3e2131
Update ccpp.yml
JeonghunLee Nov 16, 2023
c445317
Update ccpp.yml
JeonghunLee Nov 16, 2023
4e2ed0a
Update ccpp.yml
JeonghunLee Nov 16, 2023
dbe9534
Update ccpp.yml
JeonghunLee Nov 16, 2023
442ecf4
Update ccpp.yml
JeonghunLee Nov 16, 2023
00682de
Update ccpp.yml
JeonghunLee Nov 16, 2023
81c4eef
Update config.yml
JeonghunLee Nov 16, 2023
e9af416
Update config.yml
JeonghunLee Nov 16, 2023
e0c94a0
Update ccpp.yml
JeonghunLee Nov 16, 2023
b4fa941
Update ccpp.yml
JeonghunLee Nov 16, 2023
cbe8229
Update ccpp.yml
JeonghunLee Nov 16, 2023
35e4703
Update ccpp.yml
JeonghunLee Nov 16, 2023
23dfb52
Update ccpp.yml
JeonghunLee Nov 16, 2023
ce00317
Update ccpp.yml
JeonghunLee Nov 16, 2023
4ef89cf
Update ccpp.yml
JeonghunLee Nov 16, 2023
54a0161
Update ccpp.yml
JeonghunLee Nov 16, 2023
c4b820f
Update ccpp.yml
JeonghunLee Nov 16, 2023
835bc29
Update ccpp.yml
JeonghunLee Nov 16, 2023
deaeee1
Update ccpp.yml
JeonghunLee Nov 16, 2023
ef95e6e
Update ccpp.yml
JeonghunLee Nov 16, 2023
2ff94d0
Update ccpp.yml
JeonghunLee Nov 16, 2023
aae6bf2
Update ccpp.yml
JeonghunLee Nov 16, 2023
b217b09
Update ccpp.yml
JeonghunLee Nov 16, 2023
dff2c9d
Update ccpp.yml
JeonghunLee Nov 16, 2023
1f7ee55
Update readme.md
JeonghunLee Nov 17, 2023
9314cef
Update readme.md
JeonghunLee Nov 17, 2023
b33fdd7
Update readme.md
JeonghunLee Nov 17, 2023
47ec5d0
Update readme.md
JeonghunLee Nov 17, 2023
ffccd6d
Update readme.md
JeonghunLee Nov 17, 2023
be0394d
Update readme.md
JeonghunLee Nov 17, 2023
b25d575
Update ccpp.yml
JeonghunLee Nov 17, 2023
c994eb3
Update ccpp.yml
JeonghunLee Nov 17, 2023
1debcaa
Update ccpp.yml
JeonghunLee Nov 17, 2023
bb1a79b
Update ccpp.yml
JeonghunLee Nov 17, 2023
0aee1ee
Update ccpp.yml
JeonghunLee Nov 17, 2023
41b5484
Update ccpp.yml
JeonghunLee Nov 17, 2023
89bc818
Update ccpp.yml
JeonghunLee Nov 20, 2023
7e5ba31
Update ccpp.yml
JeonghunLee Nov 20, 2023
d5cc428
Update readme.md
JeonghunLee Jan 5, 2024
bb866c8
Update readme.md
JeonghunLee Jan 5, 2024
2a4d081
Update readme.md
JeonghunLee Jan 5, 2024
8b91305
Update readme.md
JeonghunLee Jan 5, 2024
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
89 changes: 89 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1


# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/configuration-reference/#jobs
jobs:
build:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
#
# See: https://circleci.com/docs/configuration-reference/#executor-job
#
# See: https://circleci.com/docs/parallelism-faster-jobs/
#
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/configuration-reference/#steps
steps:
- checkout
- run:
name: "Step.1 Build LoRA Gateway"
command: |
echo "start to build Lora Gateway"
make all
- run:
name: "Step.2 Copy LoRA Gwlib to Output"
command: |
echo "Copy Lora GWlib to Output"
mkdir -p output
cp -a libloragw/libloragw.a ./output/
cp -a util_pkt_logger/util_pkt_logger ./output/
cp -a util_spi_stress/util_spi_stress ./output/
cp -a util_tx_test/util_tx_test ./output/
cp -a util_lbt_test/util_lbt_test ./output/
cp -a util_tx_continuous/util_tx_continuous ./output/
cp -a util_spectral_scan/util_spectral_scan ./output/
cp -a ./output ./artifacts
mkdir -p /tmp/112233/output
cp -a ./output /tmp/112233/output
FILE_LIST=`ls ./artifacts/`
echo "FILE: $FILE_LIST "

- store_artifacts:
path: ./artifacts

- persist_to_workspace:
root: /tmp/112233
paths:
- output

#
# https://circleci.com/blog/publishing-to-github-releases-via-circleci/
#
# ** GITHUB_TOKEN ** have to Setup Github
# https://docs.github.com/ko/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
#
publish-github-release:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
echo " STEP.1 Start Deploying to Github"
echo " STEP.2 Check working: Meta 1:${GITHUB_TOKEN} 2:${CIRCLE_PROJECT_USERNAME} 3:${CIRCLE_PROJECT_REPONAME} 4:${CIRCLE_SHA1} "
VERSION=5.1
GITHUB_TOKEN="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"
echo " STEP.3 Check working: Version ${VERSION} "
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
echo " STEP.4 WORKING OK "



# Orchestrate jobs using workflows
# See: https://circleci.com/docs/configuration-reference/#workflows
workflows:
build-deploy:
jobs:
- build
# - publish-github-release:
# requires:
# - build
# filters:
# branches:
# only: circleci-project-setup
95 changes: 95 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: LoRa Gateway C/C++ CI in circleci-preject-setup

on: [push]

jobs:
build:

runs-on: ubuntu-latest
#
# Steps
#
steps:
#
# > STEP.1 Checkout
# Help
# - https://github.com/actions/checkout
#
- name: Checkout Repository
uses: actions/checkout@v3

#
# > STEP.2 Build and Make Output
# Help
# - https://github.com/actions/checkout
#

- name: Build Lora Gateway
run: |
pwd
echo "Start to build Lora Gateway"
make all
mkdir -p output
cp -a libloragw/libloragw.a ./output/
cp -a libloragw/library.cfg ./output/
cp -a util_pkt_logger/util_pkt_logger ./output/
cp -a util_spi_stress/util_spi_stress ./output/
cp -a util_tx_test/util_tx_test ./output/
cp -a util_lbt_test/util_lbt_test ./output/
cp -a util_tx_continuous/util_tx_continuous ./output/
cp -a util_spectral_scan/util_spectral_scan ./output/
zip --junk-paths -r loragatway output

#
# > STEP.3 Upload Output to Artifact
# Help
# - https://github.com/actions/upload-artifact
#
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.0.0
with:
# Artifact name
name: LoRaLib
path: |
./output
retention-days: 90


#
# > STEP.4 Create Release in Github
# Help
# https://github.com/actions/create-release
#
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v5.2.4.7
release_name: v5.2.4.7
body: |
Changes in this Release
- First Change
- Second Change
draft: false

#
# > STEP.5 Upload an added file to Release in Github
# Help
# - https://github.com/actions/upload-release-asset
#
- name: Add Release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./loragatway.zip
asset_name: loragatway.zip
asset_content_type: application/zip




21 changes: 20 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
/ _____) _ | |
Github
====
![GitHub release](https://img.shields.io/github/release/JeonghunLee/lora_gateway.svg?style=flat-square)
![GitHub Action](https://github.com/JeonghunLee/lora_gateway/actions/workflows/ccpp.yml/badge.svg)
![example workflow](https://github.com/JeonghunLee/lora_gateway/actions/workflows/ccpp.yml/badge.svg)
![example event parameter](https://github.com/JeonghunLee/lora_gateway/actions/workflows/ccpp.yml/badge.svg?event=push)
![example branch parameter](https://github.com/JeonghunLee/lora_gateway/actions/workflows/ccpp.yml/badge.svg?branch=circleci-project-setup)



Circle CI
====
[![CircleCI Build Status](https://circleci.com/gh/JeonghunLee/lora_gateway.svg?style=shield)](https://circleci.com/gh/JeonghunLee/lora_gateway)

[![CircleCI](https://dl.circleci.com/insights-snapshot/gh/JeonghunLee/lora_gateway/workflows/build-deploy/badge.svg?window=30d)](https://app.circleci.com/insights/github/JeonghunLee/lora_gateway/workflows/build-deploy/overview?branch=circleci-project-setup&reporting-window=last-30-days&insights-snapshot=true)


# LoRa Gateway

/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
Expand Down