add GH actions;

3.0-rcon_maint
Nat Moore 3 years ago
parent 4f181f8aa0
commit 5cc72c162a

@ -3,7 +3,12 @@ name: dvmhost-build-tarball
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
#workflow_dispatch:
#run on push/PR
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
@ -23,7 +28,7 @@ jobs:
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install -y gcc-arm-none-eabi build-essential devscripts debhelper
run: sudo apt-get install -y gcc-arm-none-eabi cmake build-essential devscripts debhelper
- name: Sync Git Submodules
run: git submodule init && git submodule update
@ -31,8 +36,14 @@ jobs:
- name: Change /opt Permissions
run: sudo chmod 777 /opt
- name: Build Debian Package
run: make tarball
- name: Change to build directory
run: mkdir build && cd build
- name: Generate build files with CMake
run: cmake ..
- name: Build binaries
run: make
- name: Package Hash
run: |
@ -41,11 +52,11 @@ jobs:
echo >> release.txt
echo '```' >> release.txt
cat << EOF >> release.txt
dvmhost_1.0.0.tar.gz
size : $(wc -c dvmhost_1.0.0.tar.gz)
md5 : $(md5sum dvmhost_1.0.0.tar.gz)
sha1 : $(sha1sum dvmhost_1.0.0.tar.gz)
sha256: $(sha256sum dvmhost_1.0.0.tar.gz)
dvmhost
size : $(wc -c dvmhost)
md5 : $(md5sum dvmhost)
sha1 : $(sha1sum dvmhost)
sha256: $(sha256sum dvmhost)
EOF
echo '```' >> release.txt
@ -55,4 +66,4 @@ jobs:
tag_name: ${{steps.date.outputs.date}}
body_path: release.txt
files: |
dvmhost_1.0.0.tar.gz
dvmhost

Loading…
Cancel
Save

Powered by TurnKey Linux.