|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + branches: |
| 7 | + - master |
| 8 | + |
| 9 | +jobs: |
| 10 | + haxelib: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: krdlab/setup-haxe@v1 |
| 15 | + with: |
| 16 | + haxe-version: 4.3.4 |
| 17 | + - name: Package Haxelib |
| 18 | + working-directory: haxelib |
| 19 | + run: haxe haxelib.hxml |
| 20 | + - uses: actions/upload-artifact@v4 |
| 21 | + with: |
| 22 | + name: feathersui-cairngorm-haxelib |
| 23 | + path: bin/haxelib/ |
| 24 | + if-no-files-found: error |
| 25 | + |
| 26 | + api: |
| 27 | + runs-on: ubuntu-latest |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + - uses: krdlab/setup-haxe@v1 |
| 31 | + with: |
| 32 | + haxe-version: 4.1.5 |
| 33 | + - name: Set up Haxelib dependencies |
| 34 | + run: | |
| 35 | + haxelib install lime --quiet |
| 36 | + haxelib install openfl --quiet |
| 37 | + haxelib install feathersui --quiet |
| 38 | + haxelib install feathersui-rpc-services --quiet |
| 39 | + haxelib install dox --quiet |
| 40 | + haxelib dev feathersui-cairngorm ${{ github.workspace }} |
| 41 | + - name: Build API reference |
| 42 | + working-directory: docs |
| 43 | + run: haxe docs.hxml |
| 44 | + - uses: actions/upload-artifact@v4 |
| 45 | + with: |
| 46 | + name: feathersui-cairngorm-docs |
| 47 | + path: bin/api/ |
| 48 | + if-no-files-found: error |
| 49 | + - name: Deploy to unstable |
| 50 | + if: ${{ github.event_name != 'pull_request' }} |
| 51 | + uses: garygrossgarten/github-action-scp@release |
| 52 | + with: |
| 53 | + local: bin/api |
| 54 | + remote: api.feathersui.com/feathersui-cairngorm/unstable |
| 55 | + host: ${{ secrets.SSH_HOST }} |
| 56 | + username: ${{ secrets.SSH_USER }} |
| 57 | + password: ${{ secrets.SSH_PASS }} |
| 58 | + |
| 59 | + flash: |
| 60 | + runs-on: ubuntu-latest |
| 61 | + steps: |
| 62 | + - uses: actions/checkout@v4 |
| 63 | + - uses: krdlab/setup-haxe@v1 |
| 64 | + with: |
| 65 | + haxe-version: 4.1.5 |
| 66 | + - name: Set up Haxelib dependencies |
| 67 | + run: | |
| 68 | + haxelib install lime --quiet |
| 69 | + haxelib install openfl --quiet |
| 70 | + haxelib install feathersui --quiet |
| 71 | + haxelib install feathersui-rpc-services --quiet |
| 72 | + haxelib dev feathersui-cairngorm ${{ github.workspace }} |
| 73 | + - name: Build Flash .swc library |
| 74 | + run: haxelib run openfl build flash -debug |
| 75 | + |
| 76 | + samples-misc: |
| 77 | + runs-on: ubuntu-latest |
| 78 | + steps: |
| 79 | + - uses: actions/checkout@v4 |
| 80 | + - uses: krdlab/setup-haxe@v1 |
| 81 | + with: |
| 82 | + haxe-version: 4.1.5 |
| 83 | + - name: Set up Haxelib dependencies |
| 84 | + run: | |
| 85 | + haxelib install lime --quiet |
| 86 | + haxelib install openfl --quiet |
| 87 | + haxelib install feathersui --quiet |
| 88 | + haxelib install feathersui-rpc-services --quiet |
| 89 | + haxelib dev feathersui-cairngorm ${{ github.workspace }} |
| 90 | + - name: Build samples/cafe-townsend |
| 91 | + working-directory: samples/cafe-townsend |
| 92 | + run: | |
| 93 | + haxelib run openfl build neko |
| 94 | + haxelib run openfl build html5 |
| 95 | + haxelib run openfl build flash |
| 96 | + haxelib run openfl build hl |
| 97 | + - name: Build samples/todomvc |
| 98 | + working-directory: samples/todomvc |
| 99 | + run: | |
| 100 | + haxelib run openfl build neko |
| 101 | + haxelib run openfl build html5 |
| 102 | + haxelib run openfl build flash |
| 103 | + haxelib run openfl build hl |
| 104 | +
|
| 105 | + samples-air: |
| 106 | + runs-on: windows-latest |
| 107 | + steps: |
| 108 | + - uses: actions/checkout@v4 |
| 109 | + - uses: joshtynjala/setup-adobe-air-action@v2 |
| 110 | + with: |
| 111 | + air-version: "33.1" |
| 112 | + accept-license: true |
| 113 | + - uses: krdlab/setup-haxe@v1 |
| 114 | + with: |
| 115 | + haxe-version: 4.1.5 |
| 116 | + - name: Set up Haxelib dependencies |
| 117 | + run: | |
| 118 | + haxelib install lime --quiet |
| 119 | + haxelib install openfl --quiet |
| 120 | + haxelib install feathersui --quiet |
| 121 | + haxelib install feathersui-rpc-services --quiet |
| 122 | + haxelib dev feathersui-cairngorm ${{ github.workspace }} |
| 123 | + haxelib run lime config AIR_SDK ${{ env.AIR_HOME }} |
| 124 | + - name: Build samples/cafe-townsend |
| 125 | + working-directory: samples/cafe-townsend |
| 126 | + run: | |
| 127 | + haxelib run openfl build air |
| 128 | + - name: Build samples/todomvc |
| 129 | + working-directory: samples/todomvc |
| 130 | + run: | |
| 131 | + haxelib run openfl build air |
0 commit comments