actions: build all examples for web, if possible #98
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: Package Feathers UI for Starling | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 11 | |
| distribution: "temurin" | |
| - uses: joshtynjala/setup-adobe-air-action@v2 | |
| with: | |
| air-version: "33.1" | |
| accept-license: true | |
| - uses: joshtynjala/setup-adobe-flash-player-action@v1 | |
| - name: Install dependencies | |
| run: | | |
| wget -O playerglobal.swc https://fpdownload.macromedia.com/get/flashplayer/updaters/32/playerglobal32_0.swc | |
| mkdir ${{ env.AIR_HOME }}/frameworks/libs/player/11.1/ | |
| cp -f playerglobal.swc ${{ env.AIR_HOME }}/frameworks/libs/player/11.1/ | |
| wget -O flexunit.zip http://mirrors.ibiblio.org/apache/flex/flexunit/4.2.0/binaries/apache-flex-flexunit-4.2.0-4.12.0-bin.zip | |
| unzip -q flexunit.zip | |
| rm flexunit/flexunit-4.2.0-20140410-flex_4.12.0.swc | |
| - name: Checkout Starling | |
| run: | | |
| git clone https://github.com/Gamua/Starling-Framework $GITHUB_WORKSPACE/starling --depth 1 | |
| - name: Ant Build | |
| run: | | |
| ant full -Dflashsdk.root="${{ env.AIR_HOME }}" -Dstarling.root="$GITHUB_WORKSPACE/starling/starling/src" -Dflexunit.root="$GITHUB_WORKSPACE/flexunit" -Dflashplayer="/usr/local/bin/flashplayer" | |
| - name: Example Ant Build - ComponentsExplorer | |
| working-directory: examples/ComponentsExplorer | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - DragAndDrop | |
| working-directory: examples/DragAndDrop | |
| run: | | |
| ant build | |
| - name: Example Ant Build - DrawersExplorer | |
| working-directory: examples/DrawersExplorer | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - HelloWorld | |
| working-directory: examples/HelloWorld | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - LayoutExplorer | |
| working-directory: examples/LayoutExplorer | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - Magic8Chat | |
| working-directory: examples/Magic8Chat | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - PullToRefresh | |
| working-directory: examples/PullToRefresh | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - StackScreenNavigatorExplorer | |
| working-directory: examples/StackScreenNavigatorExplorer | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - Tabs | |
| working-directory: examples/Tabs | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - TileList | |
| working-directory: examples/TileList | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - Todos | |
| working-directory: examples/Todos | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - TrainTimes | |
| working-directory: examples/TrainTimes | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - TransitionsExplorer | |
| working-directory: examples/TransitionsExplorer | |
| run: | | |
| ant build-web | |
| - name: Example Ant Build - YouTubeFeeds | |
| working-directory: examples/YouTubeFeeds | |
| run: | | |
| ant build-web -Dyoutube.api.key=abc123 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: feathersui-starling | |
| path: output | |
| if-no-files-found: error |