dot dot dot
This commit is contained in:
parent
1fc7e4dd0f
commit
a82f156c3f
1 changed files with 39 additions and 22 deletions
|
|
@ -1,33 +1,50 @@
|
||||||
name: Build Game
|
name: "godot-ci export"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GODOT_VERSION: 4.6.1
|
||||||
|
EXPORT_NAME: adatonic
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
export-windows:
|
||||||
|
name: Windows Export
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
container:
|
||||||
fail-fast: false
|
image: docker://barichello/godot-ci:3.2.1
|
||||||
matrix:
|
|
||||||
preset: ["Windows Desktop", "Linux"]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
- name: Build
|
- name: Setup
|
||||||
id: build
|
run: |
|
||||||
uses: https://github.com/mlm-games/godot-build-action
|
mkdir -v -p build/linux build/windows build/mac build/web ~/.local/share/godot/templates
|
||||||
|
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||||
|
- name: Windows Build
|
||||||
|
run: godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
EXPORT_PRESET_NAME: ${{ matrix.preset }}
|
name: windows
|
||||||
GODOT_VER: "" # auto-detect latest stable 4.x
|
path: ./build/windows/
|
||||||
DEBUG_MODE: "false" # or "true"
|
|
||||||
GODOT_PREVIEW_BUILDS: "false" # set "true" to use preview builds
|
|
||||||
EXPORT_DIR: builds
|
|
||||||
|
|
||||||
- name: Upload builds
|
export-linux:
|
||||||
uses: actions/upload-artifact@v4
|
name: Linux Export
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker://barichello/godot-ci:3.2.1
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Setup
|
||||||
|
run: |
|
||||||
|
mkdir -v -p build/linux build/windows build/mac build/web ~/.local/share/godot/templates
|
||||||
|
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||||
|
- name: Linux Build
|
||||||
|
run: godot -v --export "Linux" ./build/linux/$EXPORT_NAME.x86_64
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.preset }}-build
|
name: linux
|
||||||
path: ${{ steps.build.outputs.build }}
|
path: ./build/linux/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue