Import test project as example
TODO: update gitlab-ci template to also use the test-project
This commit is contained in:
38
.github/workflows/godot-ci.yml
vendored
38
.github/workflows/godot-ci.yml
vendored
@@ -16,35 +16,41 @@ jobs:
|
||||
uses: actions/checkout@v1
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir -v -p build/linux build/windows build/mac build/web ~/.local/share/godot/templates
|
||||
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: godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe
|
||||
run: |
|
||||
cd test-project
|
||||
mkdir -v -p build/windows
|
||||
godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: windows
|
||||
path: ./build/windows/
|
||||
path: test-project/build/windows/
|
||||
|
||||
export-linux:
|
||||
name: Linux Export
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker://barichello/godot-ci:3.2.1
|
||||
image: 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
|
||||
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: godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64
|
||||
run: |
|
||||
cd test-project
|
||||
mkdir -v -p build/linux
|
||||
godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: linux
|
||||
path: ./build/linux/
|
||||
path: test-project/build/linux/
|
||||
|
||||
export-web:
|
||||
name: Web Export
|
||||
@@ -56,15 +62,18 @@ jobs:
|
||||
uses: actions/checkout@v1
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir -v -p build/linux build/windows build/mac build/web ~/.local/share/godot/templates
|
||||
mkdir -v -p ~/.local/share/godot/templates
|
||||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||
- name: Web Build
|
||||
run: godot -v --export "HTML5" ./build/web/index.html
|
||||
run: |
|
||||
cd test-project
|
||||
mkdir -v -p build/web
|
||||
godot -v --export "HTML5" ./build/web/index.html
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: web
|
||||
path: ./build/web/
|
||||
path: test-project/build/web/
|
||||
|
||||
export-mac:
|
||||
name: Mac Export
|
||||
@@ -76,12 +85,15 @@ jobs:
|
||||
uses: actions/checkout@v1
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir -v -p build/linux build/windows build/mac build/web ~/.local/share/godot/templates
|
||||
mkdir -v -p ~/.local/share/godot/templates
|
||||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||
- name: Mac Build
|
||||
run: godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip
|
||||
run: |
|
||||
cd test-project
|
||||
mkdir -v -p build/mac
|
||||
godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: mac
|
||||
path: ./build/mac/
|
||||
path: test-project/build/mac/
|
||||
|
||||
Reference in New Issue
Block a user