|
| 1 | +# This is a basic workflow to help you get started with Actions |
| 2 | + |
| 3 | +name: Build |
| 4 | + |
| 5 | + |
| 6 | +# Controls when the action will run. |
| 7 | +on: |
| 8 | + # Triggers the workflow on push or pull request events but only for the master branch |
| 9 | + push: |
| 10 | + branches: [ main, experimental ] |
| 11 | + pull_request: |
| 12 | + branches: [ main, experimental ] |
| 13 | + |
| 14 | + # Allows you to run this workflow manually from the Actions tab |
| 15 | + workflow_dispatch: |
| 16 | + |
| 17 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 18 | +jobs: |
| 19 | + # This workflow contains a single job called "build" |
| 20 | + buildLinux: |
| 21 | + # The type of runner that the job will run on |
| 22 | + runs-on: ubuntu-latest |
| 23 | + |
| 24 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 25 | + steps: |
| 26 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 27 | + |
| 28 | + |
| 29 | + - uses: krdlab/setup-haxe@master |
| 30 | + with: |
| 31 | + haxe-version: 4.3.4 |
| 32 | + # Runs a set of commands using the runners shell |
| 33 | + - name: Install Haxelib |
| 34 | + run: | |
| 35 | + sudo apt-get install libvlc-dev |
| 36 | + sudo apt-get install libvlccore-dev |
| 37 | + haxelib setup ~/haxelib |
| 38 | + haxelib install hxcpp > /dev/null --quiet |
| 39 | + chmod +x ./setup/unix.sh |
| 40 | + sh ./setup/unix.sh |
| 41 | + - name: Skip SScript setup mode |
| 42 | + run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa |
| 43 | + - name: Create Version Tag |
| 44 | + run: echo "${{github.run_id}}" > VERSION |
| 45 | + - name: Compile |
| 46 | + run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}" -D officialBuild |
| 47 | + - name: Publish Artifact |
| 48 | + |
| 49 | + with: |
| 50 | + name: linuxBuild |
| 51 | + path: 'export/release/linux/bin' |
| 52 | + buildWindows: |
| 53 | + runs-on: windows-latest |
| 54 | + |
| 55 | + steps: |
| 56 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 57 | + |
| 58 | + |
| 59 | + - uses: krdlab/setup-haxe@master |
| 60 | + with: |
| 61 | + haxe-version: 4.3.4 |
| 62 | + # Runs a set of commands using the runners shell |
| 63 | + - name: Install Haxelib |
| 64 | + run: | |
| 65 | + haxelib setup C:/haxelib |
| 66 | + haxelib install hxcpp > /dev/null --quiet |
| 67 | + .\"setup/windows.bat" |
| 68 | + shell: cmd |
| 69 | + - name: Skip SScript setup mode |
| 70 | + run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> %USERPROFILE%/settings.cocoa |
| 71 | + shell: cmd |
| 72 | + - name: Create Version Tag |
| 73 | + run: echo "${{github.run_id}}" > VERSION |
| 74 | + - name: Compile |
| 75 | + run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id}}" -D officialBuild |
| 76 | + - name: Publish Artifact |
| 77 | + |
| 78 | + with: |
| 79 | + name: windowsBuild |
| 80 | + path: export/release/windows/bin |
| 81 | + buildMac: |
| 82 | + runs-on: macos-15 |
| 83 | + |
| 84 | + steps: |
| 85 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 86 | + |
| 87 | + |
| 88 | + - uses: krdlab/setup-haxe@master |
| 89 | + with: |
| 90 | + haxe-version: 4.3.4 |
| 91 | + # Runs a set of commands using the runners shell |
| 92 | + - name: Install Haxelib |
| 93 | + run: | |
| 94 | + haxelib setup ~/haxelib |
| 95 | + haxelib install hxcpp > /dev/null --quiet |
| 96 | + chmod +x ./setup/unix.sh |
| 97 | + sh ./setup/unix.sh |
| 98 | + - name: Skip SScript setup mode |
| 99 | + run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa |
| 100 | + - name: Create Version Tag |
| 101 | + run: echo "${{github.run_id}}" > VERSION |
| 102 | + - name: Compile |
| 103 | + run: haxelib run lime build mac --app-version="4.0.0-${{ github.run_id}}" -D officialBuild |
| 104 | + - name: Publish Artifact |
| 105 | + |
| 106 | + with: |
| 107 | + name: macBuild |
| 108 | + path: export/release/macos/bin |
0 commit comments