Add Linux CI (via GitHub Actions) (#4)

* Created build.yml (Linux CI)
This commit is contained in:
Luca D'Amico 2021-02-24 23:05:06 +01:00 committed by GitHub
parent a3e006fa2f
commit a4c6b5f66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

44
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: NDSFactory-Builds
on: [push]
env:
BUILD_TYPE: Release
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: |
sudo apt-get update
sudo apt-get install -y build-essential qt5-default cmake
mkdir build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
shell: bash
run: |
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: |
make -j4
- name: Archive Artifact
working-directory: ${{github.workspace}}/build
shell: bash
run: |
tar -czvf NDSFactory_`date +%Y%m%d`__Linux_x86_64.tar.gz NDSFactory ../README.md ../LICENSE
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Linux
path: build/NDSFactory_*__Linux_x86_64.tar.gz
if-no-files-found: error