Release Version 2.0 #2
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: "Run Haxe test/Test.hxml" | |
| description: "Runs Haxe test/Test.hxml on JS, C++, and HashLink" | |
| inputs: | |
| haxe-version: | |
| required: true | |
| description: "The version of the Haxe compiler to use." | |
| runs: | |
| using: "composite" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Haxe | |
| uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: ${{ inputs.haxe-version }} | |
| - name: Check Haxe | |
| run: haxe -version | |
| # ------------------------------------------- | |
| # JavaScript | |
| - name: Install Node | |
| uses: actions/setup-node@v4 | |
| - name: Check Node | |
| uses: actions/setup-node@v4 | |
| - name: Compile Test for JS | |
| run: haxe Test.hxml -js Test.js | |
| working-directory: test | |
| - name: Test JS | |
| run: node Test.js | |
| working-directory: test | |
| # ------------------------------------------- | |
| # C++ | |
| - name: Compile Test for C++ | |
| run: haxe Test.hxml -cpp bin | |
| working-directory: test | |
| - name: Test C++ | |
| run: bin/Test | |
| working-directory: test | |
| # ------------------------------------------- | |
| # HashLink | |
| - name: Setup HashLink | |
| uses: cedx/setup-hashlink@v6.2.0 | |
| - name: Compile Test for HashLink | |
| run: haxe Test.hxml -hl Test.hl | |
| working-directory: test | |
| - name: Test HashLink | |
| run: hl Test.hl | |
| working-directory: test |