Skip to content

fix: ci fix? #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/godot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,61 @@ name: "godot-ci export"
on: push

env:
GODOT_VERSION: "4.2"
GODOT_VERSION: "4.2.1"
EXPORT_NAME: ultimate-myanmar-typing-wizard
PROJECT_PATH: ./

jobs:
export-windows:
name: Windows Export
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: 09799474633/mm-typing-game-godot
image: barichello/godot-ci:4.2.1
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
cp -rvf /templates/${GODOT_VERSION}.stable/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable/
mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Windows Build
run: |
mkdir -v -p build/windows
cp -rvf Texts build/windows/
godot --headless --export-debug "Windows Desktop"
cd $PROJECT_PATH
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe

- name: Upload Artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
name: $EXPORT_NAME-windows-x86-64
path: build/windows

export-linux:
name: Linux Export
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: 09799474633/mm-typing-game-godot
image: barichello/godot-ci:4.2.1
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
cp -rvf /templates/${GODOT_VERSION}.stable/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable/
mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Linux Build
run: |
mkdir -v -p build/linux
cp -rvf Texts build/linux/
godot --headless --export-debug "Linux/X11"

- name: Upload Artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3 # for some reason v4 fails in the linux export job
with:
name: ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
name: $EXPORT_NAME-linux-x86-64
path: build/linux

# export-web:
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
asset_path: ./build/windows/$EXPORT_NAME.exe
asset_name: ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
asset_content_type: application/zip

Expand All @@ -157,7 +157,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
asset_path: ./build/linux/$EXPORT_NAME.x86_64
asset_name: ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
asset_content_type: application/zip