-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p-slice mobile, funkin preloader, hold splashes and reworked workflows
- Loading branch information
Showing
190 changed files
with
9,749 additions
and
1,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
name: | ||
required: true | ||
type: string | ||
os: | ||
required: true | ||
type: string | ||
buildArgs: | ||
required: true | ||
type: string | ||
artifactName: | ||
required: true | ||
type: string | ||
artifactPath: | ||
required: true | ||
type: string | ||
|
||
env: | ||
HAXE_VERSION: 4.3.6 | ||
PROJECT_NAME: PSliceEngine | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: Setup Haxe | ||
uses: krdlab/setup-haxe@master | ||
with: | ||
haxe-version: ${{ env.HAXE_VERSION }} | ||
|
||
- name: Install libVLC | ||
if: inputs.name == 'Linux' | ||
run: sudo apt install libvlc-dev libvlccore-dev | ||
|
||
- name: Install Libraries | ||
run: | | ||
haxelib git hxcpp https://github.com/mcagabe19-stuff/hxcpp --quiet | ||
haxelib git lime https://github.com/mcagabe19-stuff/lime --quiet | ||
haxelib install openfl 9.3.3 --quiet | ||
haxelib git flixel https://github.com/Psych-Slice/p-slice-1.0-flixel 5dde7084d8dae43201edb3efb87d38d9fe00f3a9 --quiet | ||
haxelib install flixel-addons 3.2.2 --quiet | ||
haxelib install flixel-tools 1.5.1 --quiet | ||
haxelib install hscript-iris 1.1.0 --quiet | ||
haxelib install tjson 1.4.0 --quiet | ||
haxelib git flxanimate https://github.com/Psych-Slice/FlxAnimate.git 18091dfeb629ba2805a5f3e10f5de80433080359 --quiet | ||
haxelib git linc_luajit https://github.com/mcagabe19-stuff/linc_luajit-rewriten --quiet | ||
haxelib git hxdiscord_rpc https://github.com/MAJigsaw77/hxdiscord_rpc f9353b9edce10f4605d125dd1bda24ac36898bfb --quiet --skip-dependencies | ||
haxelib install hxvlc 1.8.2 --quiet --skip-dependencies | ||
haxelib git funkin.vis https://github.com/FunkinCrew/funkVis 22b1ce089dd924f15cdc4632397ef3504d464e90 --quiet --skip-dependencies | ||
haxelib git grig.audio https://gitlab.com/haxe-grig/grig.audio.git cbf91e2180fd2e374924fe74844086aab7891666 --quiet | ||
haxelib git FlxPartialSound https://github.com/FunkinDroidTeam/FlxPartialSound 3d1da83cca3863174ca6a56827cd95c2020754bc --quiet | ||
haxelib git extension-androidtools https://github.com/MAJigsaw77/extension-androidtools --quiet --skip-dependencies | ||
- name: Configure Android | ||
if: inputs.name == 'Android' | ||
run: | | ||
haxelib run lime config ANDROID_SDK $ANDROID_HOME | ||
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_LATEST_HOME | ||
haxelib run lime config JAVA_HOME $JAVA_HOME_17_arm64 | ||
haxelib run lime config ANDROID_SETUP true | ||
- name: Compile | ||
run: haxelib run lime build ${{ inputs.buildArgs }} | ||
|
||
- name: Make IPA | ||
if: inputs.name == 'iOS' | ||
run: | | ||
cd export/release/ios/build/Release-iphoneos | ||
mkdir Payload | ||
mv *.app Payload | ||
zip -r ${{ env.PROJECT_NAME }}.ipa Payload | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: ${{ inputs.artifactName }} | ||
path: ${{ inputs.artifactPath }} | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,52 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
name: Main | ||
|
||
name: Build | ||
|
||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master, master-dev] | ||
branches: [ master, master-dev ] | ||
pull_request: | ||
branches: [ master, master-dev ] | ||
|
||
# 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" | ||
buildLinux: | ||
# 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@v4.1.7 | ||
|
||
- uses: krdlab/setup-haxe@master | ||
with: | ||
haxe-version: 4.3.4 | ||
# 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 install hxcpp > /dev/null --quiet | ||
chmod +x ./setup/unix.sh | ||
sh ./setup/unix.sh | ||
- name: Skip SScript setup mode | ||
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa | ||
- name: Create Version Tag | ||
run: echo "${{github.run_id}}" > VERSION | ||
- name: Compile | ||
run: haxelib run lime build Project.xml linux --app-version="2.0.1-${{ github.run_id}}" -D officialBuild | ||
- name: Publish Artifact | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: P-Slice.1.0.linux | ||
path: 'export/release/linux/bin' | ||
buildWindows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4.1.7 | ||
|
||
- uses: krdlab/setup-haxe@master | ||
with: | ||
haxe-version: 4.3.4 | ||
# Runs a set of commands using the runners shell | ||
- name: Install Haxelib | ||
run: | | ||
haxelib setup C:/haxelib | ||
haxelib install hxcpp > /dev/null --quiet | ||
.\"setup/windows.bat" | ||
shell: cmd | ||
- name: Skip SScript setup mode | ||
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> %USERPROFILE%/settings.cocoa | ||
shell: cmd | ||
- name: Create Version Tag | ||
run: echo "${{github.run_id}}" > VERSION | ||
- name: Compile | ||
run: haxelib run lime build windows --app-version="2.0.1-${{ github.run_id}}" -D officialBuild | ||
- name: Publish Artifact | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: P-Slice.1.0.windows | ||
path: export/release/windows/bin | ||
buildMac: | ||
runs-on: macos-12 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4.1.7 | ||
|
||
- uses: krdlab/setup-haxe@master | ||
with: | ||
haxe-version: 4.3.4 | ||
# Runs a set of commands using the runners shell | ||
- name: Install Haxelib | ||
run: | | ||
haxelib setup ~/haxelib | ||
haxelib install hxcpp > /dev/null --quiet | ||
chmod +x ./setup/unix.sh | ||
sh ./setup/unix.sh | ||
- name: Skip SScript setup mode | ||
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa | ||
- name: Create Version Tag | ||
run: echo "${{github.run_id}}" > VERSION | ||
- name: Compile | ||
run: haxelib run lime build mac --app-version="2.0.1-${{ github.run_id}}" -D officialBuild | ||
- name: Publish Artifact | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: P-Slice.1.0.mac | ||
path: export/release/macos/bin | ||
Build: | ||
name: ${{ matrix.name }} | ||
strategy: | ||
matrix: | ||
include: | ||
- name: Windows | ||
os: windows-2022 | ||
buildArgs: windows | ||
artifactName: P-Slice.1.0.windows | ||
artifactPath: export\release\windows\bin\* | ||
- name: Linux | ||
os: ubuntu-22.04 | ||
buildArgs: linux | ||
artifactName: P-Slice.1.0.linux | ||
artifactPath: export/release/linux/bin/* | ||
- name: macOS x86_64 | ||
os: macos-13 | ||
buildArgs: mac | ||
artifactName: P-Slice.1.0.macosx64 | ||
artifactPath: export/release/macos/bin/* | ||
- name: macOS AArch64 | ||
os: macos-15 | ||
buildArgs: mac | ||
artifactName: P-Slice.1.0.macosarm64 | ||
artifactPath: export/release/macos/bin/* | ||
- name: Android | ||
os: macos-14 | ||
buildArgs: "android -ONLY_ARMV7" | ||
artifactName: P-Slice.1.0.android | ||
artifactPath: "export/release/android/bin/app/build/outputs/apk/release/*.apk" | ||
- name: iOS | ||
os: macos-15 | ||
buildArgs: "ios -nosign" | ||
artifactName: P-Slice.1.0.ios | ||
artifactPath: "export/release/ios/build/Release-iphoneos/*.ipa" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
name: ${{ matrix.name }} | ||
os: ${{ matrix.os }} | ||
buildArgs: ${{ matrix.buildArgs }} | ||
artifactName: ${{ matrix.artifactName }} | ||
artifactPath: ${{ matrix.artifactPath }} |
Oops, something went wrong.