Skip to content

Commit

Permalink
Setup Github actions to create first release
Browse files Browse the repository at this point in the history
Added yamls for github actions

Move package.yaml

Typo fix

Moved package.yaml to root of repo

Update package.yaml

Update main.yaml

Update main.yaml

First Release (using github actions)
  • Loading branch information
C-Begley committed Apr 12, 2021
1 parent 5f17cc2 commit 1fcf2c7
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 105 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This is a basic workflow to help you get started with Actions

name: PackageCreator

# Controls when the action will run.
on:
# Triggers the workflow on new version
push:
tags:
- "v*.*.*"

# 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@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build libraries and executable
run: |
cmake build .
make
sudo make install
cd Examples/PosturePerfection
cmake build .
make
- name: Build Linux Packages
# You may pin to the exact commit or the version.
# uses: kentik/pkg@acc28d8704a179dd0378c3c21eb8d8dbb803edb6
uses: kentik/[email protected]
with:
# Package name
name: PosturePerfectionReceiver
# Package version
version: 1.0.0
# Package architecture
arch: x86_64
# Package format
format: deb
# Package spec file
package: package.yaml
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: PosturePerfectionReceiver
path: ${{ github.workspace }}/*.deb
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Examples/PosturePerfection/CMakeFiles/*
Examples/PosturePerfection/Makefile

#Binaries
libRemoteNotify.a
libRemoteNotifyBroadcast.a
libRemoteNotifyReceive.a
PosturePerfectionReceiver
PosturePerfectionTestBroadcast
Examples/PosturePerfection/PosturePerfectionReceiver
Examples/PosturePerfection/PosturePerfectionLocalReceiver
Examples/PosturePerfection/PosturePerfectionTestBroadcast
#Vim
.swp
#VSCODE
Expand Down
2 changes: 1 addition & 1 deletion Examples/PosturePerfection/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)

project(Posture{erfectionNotification)
project(PosturePerfectionNotification)

# add the executable
add_executable(PosturePerfectionLocalReceiver PosturePerfection_receiver.cpp)
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
24 changes: 24 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
meta:
description: UDP Receiver for messages from Posture Perfection main program
vendor: ESE-Peasy
maintainer: ESE-Peasy
files:
"/usr/local/bin/PosturePerfectionReceiver":
file: Examples/PosturePerfection/PosturePerfectionReceiver
mode: "0755"
user: "root"
"/usr/local/lib/libRemoteNotifyReceive.a":
file: libRemoteNotifyReceive.a
mode: "0755"
user: "root"
keep: true
"/usr/local/include/RemoteNotifyReceive.h":
file: RemoteNotifyReceive.h
mode: "0755"
user: "root"
keep: true
"/usr/local/share/PosturePerfection/posture-logo-no-text.png":
file: Examples/PosturePerfection/posture-logo-no-text.png
mode: "0755"
user: "root"
keep: true

0 comments on commit 1fcf2c7

Please sign in to comment.