Correct width/height calculation when viewBox is present #9
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| package-haxelib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: svg-haxelib | |
| path: | | |
| ./ | |
| !scripts/ | |
| !haxe-*-*/ | |
| !neko-*-*/ | |
| !.git/ | |
| if-no-files-found: error | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.2.5 | |
| - name: Set HAXEPATH | |
| run: | | |
| echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV | |
| - name: Install Haxe dependencies | |
| run: | | |
| haxelib install lime --quiet | |
| haxelib install openfl --quiet | |
| haxelib install dox --quiet | |
| haxelib dev svg ${{ github.workspace }} | |
| - name: Build docs | |
| working-directory: scripts | |
| run: | | |
| haxe docs.hxml | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: svg-docs | |
| path: docs | |
| if-no-files-found: error | |
| unit-test-neko: | |
| runs-on: ubuntu-latest | |
| env: | |
| SDL_VIDEODRIVER: "dummy" | |
| SDL_AUDIODRIVER: "disk" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.3.3 | |
| - name: Set HAXEPATH | |
| run: | | |
| echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV | |
| - name: Install Haxe dependencies | |
| run: | | |
| haxelib install lime --quiet | |
| haxelib install openfl --quiet | |
| haxelib install utest --quiet | |
| - name: Setup environment | |
| run: | | |
| haxelib dev svg ${{ github.workspace }} | |
| - name: Run tests on Neko | |
| working-directory: test | |
| run: | | |
| haxelib run openfl test neko | |
| unit-test-hashlink: | |
| # AL init fails on both windows and ubuntu | |
| # macos-14 is arm64, which setup-haxe doesn't support yet | |
| runs-on: macos-13 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.3.3 | |
| - name: Set HAXEPATH | |
| run: | | |
| echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV | |
| - name: Install Haxe dependencies | |
| run: | | |
| haxelib install lime --quiet | |
| haxelib install openfl --quiet | |
| haxelib install utest --quiet | |
| - name: Setup environment | |
| run: | | |
| haxelib dev svg ${{ github.workspace }} | |
| - name: Run tests on HashLink | |
| working-directory: test | |
| run: | | |
| haxelib run openfl test hl |