From a4c6b5f66ed0b397ec028c04d09ef791ea1e308b Mon Sep 17 00:00:00 2001 From: Luca D'Amico Date: Wed, 24 Feb 2021 23:05:06 +0100 Subject: [PATCH] Add Linux CI (via GitHub Actions) (#4) * Created build.yml (Linux CI) --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..323ba7d --- /dev/null +++ b/.github/workflows/build.yml @@ -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