Added naiiiive build Github action.

This commit is contained in:
imi415 2021-07-26 02:38:48 +08:00
parent b5d6e50399
commit a0c7c057fb
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
1 changed files with 26 additions and 0 deletions

26
.github/workflows/build-native.yaml vendored Normal file
View File

@ -0,0 +1,26 @@
name: "Build on native architecture"
on:
push:
branches: ["master"]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: "Update package cache"
run: "apt-get update"
- name: "Setup dependencies"
run: "apt-get -y install build-essential cmake libmosquitto-dev libconfig-dev libgpiod-dev libiio-dev"
env:
DEBIAN_FRONTEND: "noninteractive"
- name: "Checkout repository"
uses: "actions/checkout@v2"
- name: "Create build directory"
run: "mkdir build"
- name: "Configure cmake"
run: "cmake .."
working-directory: "build"
- name: "Build project"
run: "make"
working-directory: "build"