Skip to content

changing ci

changing ci #5

Workflow file for this run

name: Build Godot Project
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
godot_executable: "Godot_v4.2.1-stable_linux.x86_64"
godot_url: https://github.com/godotengine/godot/releases/download/4.2.1-stable/Godot_v4.2.1-stable_linux.x86_64.zip
platform: "Linux/X11"
extension: "x86_64"
- os: macos-latest
godot_executable: "Godot_v4.2.1-stable_macos.universal"
godot_url: https://github.com/godotengine/godot/releases/download/4.2.1-stable/Godot_v4.2.1-stable_macos.universal.zip
platform: "Mac OS X"
extension: "dmg"
- os: windows-latest
godot_executable: "Godot_v4.2.1-stable_win64.exe"
godot_url: https://github.com/godotengine/godot/releases/download/4.2.1-stable/Godot_v4.2.1-stable_win64.exe.zip
platform: "Windows Desktop"
extension: "exe"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download and Extract Godot
run: |
wget ${{ matrix.godot_url }}
unzip *.zip
- name: Export Project
run: |
if [ "${{ matrix.os }}" != "windows-latest" ]; then
chmod +x ./${{ matrix.godot_executable }}
fi
ls
./${{ matrix.godot_executable }} --export "${{ matrix.platform }}" mygame.${{ matrix.extension }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: drivechain_launcher-${{ matrix.platform }}
path: drivechain_launcher.${{ matrix.extension }}