Update ma_thing.hdll #361
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
| # This is a workflow to help make ndll production for linux easier than ever before via Actions | |
| name: Ship NDLLS | |
| # Controls when the action will run. | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the master branch | |
| push: | |
| branches: [ official ] | |
| pull_request: | |
| branches: [ official ] | |
| # 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: | |
| NDLLWindows: | |
| 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: 4.3.6 | |
| # Runs a set of commands using the runners shell | |
| - name: Install required haxelibs | |
| run: | | |
| haxelib setup ~/haxelib | |
| haxelib git lime https://github.com/SomeGuyWhoLovesCoding/lime.git --quiet | |
| haxelib install format --quiet | |
| haxelib install hxp --quiet | |
| haxelib install hxcpp --quiet | |
| - name: Make NDLL | |
| run: | | |
| echo "--HAXELIB PATH:--" | |
| haxelib libpath lime | |
| echo "-----------------" | |
| haxelib run lime rebuild windows | |
| - name: Publish artifact | |
| uses: actions/[email protected] | |
| with: | |
| name: 'NDLL-Windows' | |
| path: C:/Users/runneradmin/haxelib/lime/git/ndll/Windows64 | |
| NDLLLinux: | |
| # 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/[email protected] | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.3.6 | |
| # Runs a set of commands using the runners shell | |
| - name: Install required Linux libraries | |
| run: | | |
| # Fix repositories and update | |
| sudo sed -i 's/azure.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list | |
| sudo apt-get update | |
| # Install 64-bit dependencies | |
| 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 | |
| # Install 64-bit graphics libraries (without version pinning) | |
| 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 | |
| # Add i386 architecture and install 32-bit libraries | |
| 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 | |
| # Fix both headers and create symlinks | |
| 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: Install required haxelibs | |
| run: | | |
| haxelib setup ~/haxelib | |
| haxelib git lime https://github.com/SomeGuyWhoLovesCoding/lime.git --quiet | |
| haxelib install format --quiet | |
| haxelib install hxp --quiet | |
| haxelib install hxcpp --quiet | |
| - name: Make NDLL | |
| run: | | |
| echo "--HAXELIB PATH:--" | |
| haxelib libpath lime | |
| echo "-----------------" | |
| haxelib run lime rebuild linux | |
| - name: Publish artifact | |
| uses: actions/[email protected] | |
| with: | |
| name: 'NDLL-Linux' | |
| path: /home/runner/haxelib/lime/git/ndll/Linux64 |