diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml new file mode 100644 index 0000000..ae7a4e6 --- /dev/null +++ b/.github/workflows/deployment.yaml @@ -0,0 +1,56 @@ +name: Build VirtualSlate +on: + push: + branches: + - master +jobs: + Build-Extension: + runs-on: ubuntu-latest + steps: + - name: Update Packages + run: sudo apt-get update + - name: Install Scons + run: sudo apt-get -y install scons gcc-mingw-w64 + - name: Install Compiler + run: yes | sudo apt-get install g++-mingw-w64-x86-64 + - name: Get Repo + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Build Extension + run: scons platform=windows + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: VirtualSlateBuildFiles + path: ./ + + Build-Game: + runs-on: windows-latest + needs: Build-Extension + steps: + - name: Retrieve Build + uses: actions/download-artifact@v3 + with: + name: VirtualSlateBuildFiles + - name: Download Engine + run: Invoke-WebRequest https://downloads.tuxfamily.org/godotengine/4.1.2/Godot_v4.1.2-stable_win64.exe.zip -OutFile godotbuilder.zip + - name: Unzip Engine + run: Expand-Archive godotbuilder.zip -DestinationPath ./ + - name: Make Game + run: ./Godot_v4.1.2-stable_win64_console.exe --headless --path project --export-debug "Windows Desktop" + - name: Move Files + run: mkdir project/build; cp project/Project.exe project/build/Project.exe; cp project/Project.pck project/build/Project.pck; + - name: Move Files Part 2 + run: cp project/libproofgraph.windows.template_debug.x86_64.dll project/build/libproofgraph.windows.template_debug.x86_64.dll + - name: Zip release + run: Compress-Archive -Path project/build/* -Destination VirtualSlate.zip + - name: Publish + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: VirtualSlate.zip + asset_name: VRSlate + tag: ${{ github.ref }} + overwrite: true + body: "Windows-x64" diff --git a/.gitignore b/.gitignore index 6966268..1f4d67d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -*.exe +#*.exe Readd once workflow is complete *.obj *.dblite *.os diff --git a/project/export_presets.cfg b/project/export_presets.cfg index 05cef54..e778c9b 100644 --- a/project/export_presets.cfg +++ b/project/export_presets.cfg @@ -8,7 +8,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="../../test.exe" +export_path="./Project.exe" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false @@ -16,8 +16,8 @@ encrypt_directory=false [preset.0.options] -custom_template/debug="" -custom_template/release="" +custom_template/debug="./windows_debug_x86_64.exe" +custom_template/release="./windows_release_x86_64.exe" debug/export_console_wrapper=1 binary_format/embed_pck=false texture_format/bptc=true @@ -31,7 +31,7 @@ codesign/timestamp_server_url="" codesign/digest_algorithm=1 codesign/description="" codesign/custom_options=PackedStringArray() -application/modify_resources=true +application/modify_resources=false application/icon="" application/console_wrapper_icon="" application/icon_interpolation=4 diff --git a/project/windows_debug_x86_64.exe b/project/windows_debug_x86_64.exe new file mode 100644 index 0000000..90cf7b6 Binary files /dev/null and b/project/windows_debug_x86_64.exe differ diff --git a/project/windows_release_x86_64.exe b/project/windows_release_x86_64.exe new file mode 100644 index 0000000..906d07e Binary files /dev/null and b/project/windows_release_x86_64.exe differ