Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Add HTML5 and Linux to CI, improvements to development env #2229

Merged
merged 18 commits into from
Sep 11, 2021
Merged
Show file tree
Hide file tree
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
54 changes: 54 additions & 0 deletions .github/workflows/html5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions

name: HTML5 Build CI

# Controls when the workflow will run
on: push

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.1.5
# Runs a set of commands using the runners shell
- name: script run line haha
run: |
sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib haxe -y
mkdir "%HAXELIB_ROOT%"
haxelib setup "%HAXELIB_ROOT%"
haxelib install lime 7.9.0
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-addons
haxelib install flixel-ui
haxelib install hscript
haxelib install flixel-addons
haxelib git faxe https://github.com/uhrobots/faxe
haxelib git polymod https://github.com/larsiusprime/polymod.git
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib git extension-webm https://github.com/KadeDev/extension-webm
haxelib run lime rebuild extension-webm linux
haxelib git linc_luajit https://github.com/MasterEric/linc_luajit.git
haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit.git
haxelib install actuate
haxelib list
haxelib run lime build html5

- uses: actions/upload-artifact@v2
with:
name: HTML5 Build
path: export/release/html5/bin
54 changes: 54 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions

name: Linux Build CI

# Controls when the workflow will run
on: push

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.1.5
# Runs a set of commands using the runners shell
- name: script run line haha
run: |
sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib haxe -y
mkdir "%HAXELIB_ROOT%"
haxelib setup "%HAXELIB_ROOT%"
haxelib install lime 7.9.0
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-addons
haxelib install flixel-ui
haxelib install hscript
haxelib install flixel-addons
haxelib git faxe https://github.com/uhrobots/faxe
haxelib git polymod https://github.com/larsiusprime/polymod.git
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib git extension-webm https://github.com/KadeDev/extension-webm
haxelib run lime rebuild extension-webm linux
haxelib git linc_luajit https://github.com/MasterEric/linc_luajit.git
haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit.git
haxelib install actuate
haxelib list
haxelib run lime build linux

- uses: actions/upload-artifact@v2
with:
name: Linux Build
path: export/release/linux/bin
10 changes: 0 additions & 10 deletions .github/workflows/superlinter.yml

This file was deleted.

10 changes: 4 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Windows Build CI

# Controls when the workflow will run
on: push
Expand All @@ -18,24 +18,21 @@ jobs:
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.0.5
haxe-version: 4.1.5
# Runs a set of commands using the runners shell
- name: script run line haha
run: |
cinst neko --version 2.3.0 -y
cinst haxe --version 4.1.5 -y
RefreshEnv
mkdir "%HAXELIB_ROOT%"
haxelib setup "%HAXELIB_ROOT%"
Install project dependencies
haxelib install lime 7.9.0
RefreshEnv
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib run flixel-tools setup -y # Can't do this since it asks [y/n] even with -y argument! Stupid
haxelib install flixel-addons
haxelib install flixel-ui
haxelib install hscript
Expand All @@ -45,7 +42,8 @@ jobs:
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib git extension-webm https://github.com/KadeDev/extension-webm
haxelib run lime rebuild extension-webm windows
haxelib install linc_luajit
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit.git
haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit
haxelib install actuate
haxelib list
haxelib run lime build windows
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export/
.vscode/
assets/preload/data/milf/modchart.lua
export/
47 changes: 47 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Windows (Debug)",
"type": "hxcpp",
"preLaunchTask": "Build Windows (Debug)",
"request": "launch",
"program": "${workspaceFolder}/export/debug/windows/bin/Kade Engine.exe"
},
{
"name": "Windows (Release)",
"type": "hxcpp",
"preLaunchTask": "Build Windows (Release)",
"request": "launch",
"program": "${workspaceFolder}/export/debug/windows/bin/Kade Engine.exe"
},
{
"name": "HTML5 (Debug)",
"request": "launch",
"preLaunchTask": "Build HTML5 (Debug)",
"type": "node-terminal",
"command": "npx live-server \"${workspaceFolder}/export/debug/html5/bin/\""
},
{
"name": "HTML5 (Release)",
"request": "launch",
"preLaunchTask": "Build HTML5 (Release)",
"type": "node-terminal",
"command": "npx live-server \"${workspaceFolder}/export/release/html5/bin/\""
},
{
"name": "Linux (Debug)",
"type": "hxcpp",
"preLaunchTask": "Build Linux (Debug)",
"request": "launch",
"program": "${workspaceFolder}/export/debug/linux/bin/Kade Engine"
},
{
"name": "Linux (Release)",
"type": "hxcpp",
"preLaunchTask": "Build Linux (Release)",
"request": "launch",
"program": "${workspaceFolder}/export/debug/linux/bin/Kade Engine"
},
],
}
46 changes: 46 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"lime.targetConfigurations": [
{
"label": "Build Windows (Debug)",
"target": "windows",
"args": [
"-debug"
]
},
{
"label": "Build Windows (Release)",
"target": "windows",
"args": [
"-release"
]
},
{
"label": "Build Linux (Debug)",
"target": "linux",
"args": [
"-debug"
]
},
{
"label": "Build Linux (Release)",
"target": "linux",
"args": [
"-release"
]
},
{
"label": "Build HTML5 (Debug)",
"target": "html5",
"args": [
"-debug"
]
},
{
"label": "Build HTML5 (Release)",
"target": "html5",
"args": [
"-release"
]
}
]
}
76 changes: 60 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,65 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "lime",
"command": "test",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "lime",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
}
{
"label": "Build Windows (Debug)",
"type": "lime",
"targetConfiguration": "Build Windows (Debug)",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Windows (Release)",
"type": "lime",
"targetConfiguration": "Build Windows (Release)",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build HTML5 (Debug)",
"type": "lime",
"targetConfiguration": "Build HTML5 (Debug)",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build HTML5 (Release)",
"type": "lime",
"targetConfiguration": "Build HTML5 (Release)",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Linux (Debug)",
"type": "lime",
"targetConfiguration": "Build Linux (Debug)",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Linux (Release)",
"type": "lime",
"targetConfiguration": "Build Linux (Release)",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
20 changes: 18 additions & 2 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<haxelib name="faxe" if='switch'/>
<haxelib name="polymod"/>
<haxelib name="discord_rpc" if="desktop"/>
<haxelib name="linc_luajit"/>
<haxelib name="linc_luajit" if="desktop"/>
<haxelib name="hxvm-luajit" if="desktop"/>
<!-- <haxelib name="hxcpp-debug-server" if="desktop"/> -->

Expand Down Expand Up @@ -185,5 +185,21 @@

<haxeflag name="--no-traces" unless="debug" />
<haxeflag name="--dce full" if="release" />


<!-- Use defines to ensure compile-time definitions have readable context. -->
<!-- Allowed inputs are mobile,desktop,web,ios,android,windows,mac,linux,switch,html5,cpp,neko,flash,js -->

<!-- Defines whether the Discord client should be enabled. Only works on desktop. -->
<haxedef name="FEATURE_DISCORD" if="desktop" />
<!-- Defines whether the file system can be read/written directly. Does not work in browser. -->
<haxedef name="FEATURE_FILESYSTEM" if="desktop" />
<!-- Defines whether Lua Modcharts should be enabled. Only works on Windows. -->
<haxedef name="FEATURE_LUAMODCHART" if="windows" />
<!-- Defines whether WebM videos should be enabled. Currently only enabled on Windows. -->
<haxedef name="FEATURE_WEBM" if="windows" />
<!-- Defines whether StepMania files can be loaded. -->
<haxedef name="FEATURE_STEPMANIA" if="desktop" />
<!-- Defines whether the Thread class can be used. -->
<haxedef name="FEATURE_MULTITHREADING" if="cpp" />

</project>
Loading