diff --git a/.github/workflows/belmont.yml b/.github/workflows/belmont.yml new file mode 100644 index 0000000..d45193b --- /dev/null +++ b/.github/workflows/belmont.yml @@ -0,0 +1,74 @@ +name: "godot-ci export" +on: push + +env: + GODOT_VERSION: 3.5.1 + +jobs: + export-windows: + name: Windows Export + runs-on: ubuntu-20.04 + container: + image: barichello/godot-ci:3.5.1 + steps: + - name: Checkout main repo + uses: actions/checkout@v2 + with: + lfs: true + - name: Download artifact + id: download-artifact + uses: dawidd6/action-download-artifact@v2 + with: + github_token: ${{secrets.GITHUB_TOKEN}} + workflow: build-windows.yml + workflow_conclusion: success + repo: toastware/oftoast2-gdnative + - name: Setup + run: | + cp windows-native/gddl.dll libgddl.dll + cp windows-native/gddl.dll gdnative/windows/libgddl.dll + mkdir -v -p ~/.local/share/godot/templates + mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable + - name: Windows Build + run: | + mkdir -v -p build/windows + godot -v --export "Windows Desktop" build/windows/belmont.exe + - name: Upload Artifact + uses: actions/upload-artifact@v1 + with: + name: windows + path: build/windows/ + + export-linux: + name: Linux Export + runs-on: ubuntu-20.04 + container: + image: barichello/godot-ci:3.5.1 + steps: + - name: Checkout main repo + uses: actions/checkout@v2 + with: + lfs: true + - name: Download artifact + id: download-artifact + uses: dawidd6/action-download-artifact@v2 + with: + github_token: ${{secrets.GITHUB_TOKEN}} + workflow: build-linux.yml + workflow_conclusion: success + repo: toastware/oftoast2-gdnative + - name: Setup + run: | + cp linux/libgddl.so . + cp linux/libgddl.so gdnative/linuxbsd/libgddl.so + mkdir -v -p ~/.local/share/godot/templates + mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable + - name: Linux Build + run: | + mkdir -v -p build/linux + godot -v --export "Linux/X11" build/linux/belmont.x86_64 + - name: Upload Artifact + uses: actions/upload-artifact@v1 + with: + name: linux + path: build/linux \ No newline at end of file