Skip to content

FUCK YOU THEN. I WILL REVERT THIS SHIT AND DO EVERYTHING AGAIN #3

FUCK YOU THEN. I WILL REVERT THIS SHIT AND DO EVERYTHING AGAIN

FUCK YOU THEN. I WILL REVERT THIS SHIT AND DO EVERYTHING AGAIN #3

Workflow file for this run

name: SB Engine workflow
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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"
Linux:
# 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@master
with:
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
sudo apt-get install libvlc-dev
sudo apt-get install libvlccore-dev
haxelib setup ~/haxelib
haxelib --global update haxelib
haxelib install hxcpp > /dev/null
haxelib install hmm --quiet
haxelib run hmm install
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Configure Linux
run: |
haxelib run lime setup -alias -y
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
- name: Building
run: haxelib run lime build linux -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-linux-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-release-build-linux-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/release/linux/haxe
export/release/linux/obj
key: cache-linux-build
- name: Publish Artifact
uses: actions/[email protected]
with:
name: sbEngineLinuxBuild
path: 'export/release/linux/bin'
Linux-Debug:
# 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@master
with:
haxe-version: 4.2.5
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
sudo apt-get install libvlc-dev
sudo apt-get install libvlccore-dev
haxelib setup ~/haxelib
haxelib --global update haxelib
haxelib install hxcpp > /dev/null
haxelib install hmm --quiet
haxelib run hmm install
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Configure Debugged Linux
run: |
haxelib run lime setup -alias -y
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
- name: Building
run: haxelib run lime build linux -debug -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-linux-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-debug-build-linux-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/debug/linux/haxe
export/debug/linux/obj
key: cache-linux-build
- name: Publish Artifact
uses: actions/[email protected]
with:
name: sbEngineDebuggedLinuxBuild
path: 'export/debug/linux/bin'
Windows:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- uses: krdlab/setup-haxe@master
with:
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup C:/haxelib
haxelib --global update haxelib
haxelib install hxcpp > /dev/null
haxelib install hmm --quiet
haxelib run hmm install
shell: cmd
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Configure Windows
run: |
haxelib run lime setup -alias -y
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
- name: Building
run: haxelib run lime build windows -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-windows-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-release-build-windows-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/release/windows/haxe
export/release/windows/obj
key: cache-windows-build
- name: Publish Artifact
uses: actions/[email protected]
with:
name: sbEngineWindowsBuild
path: export/release/windows/bin
Windows-Debug:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- uses: krdlab/setup-haxe@master
with:
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup C:/haxelib
haxelib --global update haxelib
haxelib install hxcpp > /dev/null
haxelib install hmm --quiet
haxelib run hmm install
shell: cmd
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Configure Debugged Windows
run: |
haxelib run lime setup -alias -y
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
- name: Building
run: haxelib run lime build windows -debug -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-windows-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-debug-build-windows-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/debug/windows/haxe
export/debug/windows/obj
key: cache-windows-build
- name: Publish Artifact
uses: actions/[email protected]
with:
name: sbEngineDebuggedWindowsBuild
path: export/debug/windows/bin
Mac:
runs-on: macos-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@master
with:
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib --global update haxelib
haxelib install hxcpp > /dev/null
haxelib install hmm --quiet
haxelib run hmm install
- name: Configure Mac
run: |
haxelib run lime setup -alias -y
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Building
run: haxelib run lime build macos -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-macos-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-release-build-macos-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/release/macos/haxe
export/release/macos/obj
key: cache-macos-build
- name: Publish Artifact
uses: actions/[email protected]
with:
name: sbEngineMacOSBuild
path: export/release/macos/bin
Mac-Debug:
runs-on: macos-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@master
with:
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib --global update haxelib
haxelib install hxcpp > /dev/null
haxelib install hmm --quiet
haxelib run hmm install
- name: Configure Debugged Mac
run: |
haxelib run lime setup -alias -y
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Building
run: haxelib run lime build macos -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-macos-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-debug-build-macos-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/debug/macos/haxe
export/debug/macos/obj
key: cache-macos-build
- name: Publish Artifact
uses: actions/[email protected]
with:
name: sbEngineDebuggedMacOSBuild
path: export/debug/macos/bin
Android:
name: Android
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Android NDK
uses: nttld/setup-ndk@main
id: setup-ndk
with:
ndk-version: r21e
- name: Setup Java JDK
uses: actions/setup-java@main
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
- name: Restore Previous Cache
id: cache-debug-build-android-restore
uses: actions/cache/restore@main
with:
path: |
~/haxelib
~/.gradle
export/release/android/haxe
export/release/android/obj
key: cache-android-build
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib --global update haxelib
haxelib --quiet install hxcpp 4.2.1 > /dev/null
haxelib --quiet install lime 8.0.2
haxelib --quiet install openfl 9.2.2
haxelib --quiet install flixel
haxelib --quiet run lime setup flixel
haxelib --quiet install flixel-tools
haxelib --quiet install flixel-ui
haxelib --quiet install flixel-addons
haxelib --quiet install tjson
haxelib --quiet install hxjsonast
haxelib --quiet install SScript 8.1.6
haxelib --quiet git hxCodec https://github.com/SPLCoding/hxCodec-but-it-works-xd.git
haxelib --quiet git linc_luajit https://github.com/Sirox228/linc_luajit.git
haxelib --quiet git extension-androidtools https://github.com/MaysLastPlay77/extension-androidtools.git
haxelib --quiet git AndroidDialogs https://github.com/beihu235/AndroidDialogs.git
haxelib --quiet git devicelanguage https://github.com/beihu235/devicelanguage.git
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Configure Android
run: |
haxelib run lime setup -alias -y
haxelib run lime config ANDROID_SDK $ANDROID_HOME
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_HOME
haxelib run lime config JAVA_HOME $JAVA_HOME
haxelib run lime config ANDROID_SETUP true
haxelib set hxcpp 4.2.1
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Building
run: haxelib run lime build android -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-android-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-release-build-android-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/release/android/haxe
export/release/android/obj
key: cache-android-build
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: sbEngineAndroidBuild
path: export/release/android/bin/app/build/outputs/apk/debug
Android-Debug:
name: Android-Debug
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Android NDK
uses: nttld/setup-ndk@main
id: setup-ndk
with:
ndk-version: r21e
- name: Setup Java JDK
uses: actions/setup-java@main
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
- name: Restore Previous Cache
id: cache-debug-build-android-restore
uses: actions/cache/restore@main
with:
path: |
~/haxelib
~/.gradle
export/debug/android/haxe
export/debug/android/obj
key: cache-android-build
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib --global update haxelib
haxelib --quiet install hxcpp 4.2.1 > /dev/null
haxelib --quiet install lime 8.0.2
haxelib --quiet install openfl 9.2.2
haxelib --quiet install flixel
haxelib --quiet run lime setup flixel
haxelib --quiet install flixel-tools
haxelib --quiet install flixel-ui
haxelib --quiet install flixel-addons
haxelib --quiet install tjson
haxelib --quiet install hxjsonast
haxelib --quiet install SScript 8.1.6
haxelib --quiet git hxCodec https://github.com/SPLCoding/hxCodec-but-it-works-xd.git
haxelib --quiet git linc_luajit https://github.com/Sirox228/linc_luajit.git
haxelib --quiet git extension-androidtools https://github.com/MaysLastPlay77/extension-androidtools.git
haxelib --quiet git AndroidDialogs https://github.com/beihu235/AndroidDialogs.git
haxelib --quiet git devicelanguage https://github.com/beihu235/devicelanguage.git
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Configure Debugged Android
run: |
haxelib run lime setup -alias -y
haxelib run lime config ANDROID_SDK $ANDROID_HOME
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_HOME
haxelib run lime config JAVA_HOME $JAVA_HOME
haxelib run lime config ANDROID_SETUP true
haxelib set hxcpp 4.2.1
haxelib set lime 8.0.2
haxelib set openfl 9.2.2
haxelib set SScript 8.1.6
haxelib list
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Building
run: haxelib run lime build android -debug -${{ matrix.arch }}
env:
cert_pass: nullfunni
cert_alias_pass: nullfunni
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: |
try {
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-android-build") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Previous Cache Cleared!")
}
}
}
} catch (error) {
console.log(error.message);
}
- name: Save Current Cache
id: cache-debug-build-android-save
uses: actions/cache/save@main
with:
path: |
~/haxelib
~/.gradle
export/debug/android/haxe
export/debug/android/obj
key: cache-android-build
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: sbEngineDebuggedAndroidBuild
path: export/debug/android/bin/app/build/outputs/apk/debug