This commit is contained in:
@ -14,81 +14,81 @@ env:
|
|||||||
ACTIONS_STEP_DEBUG: true
|
ACTIONS_STEP_DEBUG: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
export-windows:
|
# export-windows:
|
||||||
name: Windows Export
|
# name: Windows Export
|
||||||
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
# runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
||||||
container:
|
# container:
|
||||||
image: barichello/godot-ci:mono-4.4.1 # change to mono
|
# image: barichello/godot-ci:mono-4.4.1 # change to mono
|
||||||
steps:
|
# steps:
|
||||||
# Doing this becuase barichello/godot-ci:4.4 doesn't have nodejs installed, may need to make own docker image in the future
|
# # Doing this becuase barichello/godot-ci:4.4 doesn't have nodejs installed, may need to make own docker image in the future
|
||||||
# By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
# # By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
||||||
- name: Install Node.js
|
# - name: Install Node.js
|
||||||
run: |
|
# run: |
|
||||||
apt-get update
|
# apt-get update
|
||||||
apt-get install -y curl
|
# apt-get install -y curl
|
||||||
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
# curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
apt-get install -y nodejs
|
# apt-get install -y nodejs
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
# uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
lfs: true
|
# lfs: true
|
||||||
- name: Setup
|
# - name: Setup
|
||||||
run: |
|
# run: |
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/
|
# mkdir -v -p ~/.local/share/godot/export_templates/
|
||||||
mkdir -v -p ~/.config/
|
# mkdir -v -p ~/.config/
|
||||||
- name: Windows Build
|
# - name: Windows Build
|
||||||
run: |
|
# run: |
|
||||||
mkdir -v -p build/windows
|
# mkdir -v -p build/windows
|
||||||
EXPORT_DIR="$(readlink -f build)"
|
# EXPORT_DIR="$(readlink -f build)"
|
||||||
cd $PROJECT_PATH
|
# cd $PROJECT_PATH
|
||||||
godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
# godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
||||||
|
|
||||||
- name: Upload Artifact
|
# - name: Upload Artifact
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
# uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
||||||
with:
|
# with:
|
||||||
name: windows
|
# name: windows
|
||||||
path: build/windows
|
# path: build/windows
|
||||||
|
|
||||||
|
|
||||||
export-linux:
|
# export-linux:
|
||||||
name: Linux Export
|
# name: Linux Export
|
||||||
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
# runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
||||||
container:
|
# container:
|
||||||
image: barichello/godot-ci:4.4
|
# image: barichello/godot-ci:4.4
|
||||||
steps:
|
# steps:
|
||||||
# Doing this becuase barichello/godot-ci:4.4 doesn't have nodejs installed, may need to make own docker image in the future
|
# # Doing this becuase barichello/godot-ci:4.4 doesn't have nodejs installed, may need to make own docker image in the future
|
||||||
# By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
# # By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
||||||
- name: Install Node.js
|
# - name: Install Node.js
|
||||||
run: |
|
# run: |
|
||||||
apt-get update
|
# apt-get update
|
||||||
apt-get install -y curl
|
# apt-get install -y curl
|
||||||
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
# curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
apt-get install -y nodejs
|
# apt-get install -y nodejs
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
# uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
lfs: true
|
# lfs: true
|
||||||
- name: Setup
|
# - name: Setup
|
||||||
run: |
|
# run: |
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/
|
# mkdir -v -p ~/.local/share/godot/export_templates/
|
||||||
- name: Linux Build
|
# - name: Linux Build
|
||||||
run: |
|
# run: |
|
||||||
mkdir -v -p build/linux
|
# mkdir -v -p build/linux
|
||||||
EXPORT_DIR="$(readlink -f build)"
|
# EXPORT_DIR="$(readlink -f build)"
|
||||||
cd $PROJECT_PATH
|
# cd $PROJECT_PATH
|
||||||
godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
# godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
||||||
- name: Upload Artifact
|
# - name: Upload Artifact
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
# uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
||||||
with:
|
# with:
|
||||||
name: linux
|
# name: linux
|
||||||
path: build/linux
|
# path: build/linux
|
||||||
|
|
||||||
steam-publish:
|
steam-publish:
|
||||||
name: Steam Publish
|
name: Steam Publish
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container:
|
container:
|
||||||
image: cm2network/steamcmd:root
|
image: cm2network/steamcmd
|
||||||
needs: [export-windows, export-linux]
|
#needs: [export-windows, export-linux]
|
||||||
steps:
|
steps:
|
||||||
# Need node.j for https://gitea.com/actions/checkout@v4
|
# Need node.j for https://gitea.com/actions/checkout@v4
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
|
|||||||
Reference in New Issue
Block a user