From 830ad2dfb9a1a7f1c3a4c274d0cf86e90758bbb1 Mon Sep 17 00:00:00 2001 From: John Till Date: Thu, 7 Nov 2024 21:44:30 +0000 Subject: [PATCH] Add build from source --- .github/workflows/source_instructions.sh | 12 ++++++++++++ .github/workflows/source_instructions.yml | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/source_instructions.sh create mode 100644 .github/workflows/source_instructions.yml diff --git a/.github/workflows/source_instructions.sh b/.github/workflows/source_instructions.sh new file mode 100644 index 0000000..11627df --- /dev/null +++ b/.github/workflows/source_instructions.sh @@ -0,0 +1,12 @@ +# Compile +apt-get install cmake python3 qt5-default qtbase5-dev, qtchooser, qt5-qmake, qtbase5-dev-tools, libqt5svg5-dev +pip3 install conan +git clone https://github.com/JohnDTill/Forscape +cd ./Forscape +conan install --generator cmake_find_package --install-folder build/conan-dependencies app +cmake -DCMAKE_BUILD_TYPE=Release -B build -S app +cd build +make + +# Run +#./Forscape \ No newline at end of file diff --git a/.github/workflows/source_instructions.yml b/.github/workflows/source_instructions.yml new file mode 100644 index 0000000..9116f83 --- /dev/null +++ b/.github/workflows/source_instructions.yml @@ -0,0 +1,15 @@ +name: Build from source (ubuntu-latest gcc) +on: push +# on: +# pull_request: +# push: +# branches: main +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - id: permissions + run: chmod +x "${GITHUB_WORKSPACE}/.github/workflows/build_from_source.sh" + - id: build + run: ${GITHUB_WORKSPACE}/.github/workflows/build_from_source.sh