Now you got a basic gist of what to expect. #93
This file contains hidden or 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
| name: HL-Build | |
| on: | |
| push: | |
| branches: [ official ] | |
| pull_request: | |
| branches: [ official ] | |
| workflow_dispatch: | |
| jobs: | |
| WindowsHLBuild: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.3.6 | |
| - uses: HaxeFoundation/setup-hashlink@v1 | |
| with: | |
| version: latest | |
| - name: Setup haxelib | |
| run: haxelib setup C:/haxelib | |
| shell: cmd | |
| - name: Install haxelib dependencies | |
| if: steps.haxelib-cache.outputs.cache-hit != 'true' | |
| run: | | |
| haxelib install format --quiet | |
| haxelib install hxp --quiet | |
| haxelib git hxcpp https://github.com/SomeGuyWhoLovesCoding/hxcpp-sgwlfnf.git --quiet | |
| haxelib git lime https://github.com/SomeGuyWhoLovesCoding/lime.git --quiet | |
| haxelib git peote-view_funkinview https://github.com/SomeGuyWhoLovesCoding/peote-view.git --quiet | |
| haxelib git linc_luajit_funkinview https://github.com/SomeGuyWhoLovesCoding/linc_luajit_funkinview.git --quiet | |
| haxelib install input2action --quiet | |
| haxelib git customtitlebar https://github.com/SomeGuyWhoLovesCoding/customtitlebar.git --quiet | |
| shell: cmd | |
| - name: Check version tag | |
| run: echo "${{github.run_id}}" > VERSION | |
| - name: Compile | |
| run: haxelib run lime build hl --app-version="4.0.0-${{ github.run_id}}" | |
| - name: Publish artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 'FV-HL-Windows' | |
| path: bin/hl/bin | |
| LinuxHLBuild: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.3.6 | |
| - uses: HaxeFoundation/setup-hashlink@v1 | |
| with: | |
| version: latest | |
| - name: Install required Linux libraries | |
| run: | | |
| sudo sed -i 's/azure.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list | |
| sudo apt-get update | |
| sudo apt-get install libc6-dev-i386 | |
| export LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch) | |
| export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch) | |
| export CPLUS_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch) | |
| sudo apt-get install g++-multilib | |
| sudo apt install libx11-dev libxrandr-dev libxinerama-dev | |
| sudo apt-get install libgl-dev libgl1-mesa-dev libasound2-dev | |
| sudo apt-get install libdrm-dev libgbm-dev mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev | |
| sudo dpkg --add-architecture i386 | |
| sudo apt update | |
| sudo apt-get install libgl-dev:i386 libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 | |
| sudo apt-get install libdrm-dev:i386 libgbm-dev:i386 mesa-common-dev:i386 libegl1-mesa-dev:i386 libgles2-mesa-dev:i386 | |
| sudo sed -i 's|<drm_mode.h>|<libdrm/drm_mode.h>|' /usr/include/xf86drmMode.h && \ | |
| sudo sed -i 's|<drm.h>|<libdrm/drm.h>|' /usr/include/xf86drm.h && \ | |
| sudo ln -sf /usr/include/libdrm/drm_mode.h /usr/include/drm_mode.h && \ | |
| sudo ln -sf /usr/include/libdrm/drm.h /usr/include/drm.h | |
| - name: Setup haxelib | |
| run: haxelib setup ~/haxelib | |
| - name: Install haxelib dependencies | |
| if: steps.haxelib-cache.outputs.cache-hit != 'true' | |
| run: | | |
| haxelib install format --quiet | |
| haxelib install hxp --quiet | |
| haxelib git lime https://github.com/SomeGuyWhoLovesCoding/lime.git --quiet | |
| haxelib git peote-view_funkinview https://github.com/SomeGuyWhoLovesCoding/peote-view.git --quiet | |
| haxelib git linc_luajit_funkinview https://github.com/SomeGuyWhoLovesCoding/linc_luajit_funkinview.git --quiet | |
| haxelib install input2action --quiet | |
| haxelib git customtitlebar https://github.com/SomeGuyWhoLovesCoding/customtitlebar.git --quiet | |
| - name: Check version tag | |
| run: echo "${{github.run_id}}" > VERSION | |
| - name: Compile | |
| run: | | |
| haxelib run lime rebuild hl | |
| haxelib run lime build hl --app-version="4.0.0-${{ github.run_id}}" | |
| tar -czvf bin/hl/bin/FV-HL-Linux.tar.gz -C bin/hl/bin * | |
| - name: Publish artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: 'FV-HL-Linux' | |
| path: "FV-HL-Linux.tar.gz" | |
| archive: false |