Build with mousegen #23
Workflow file for this run
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: Build with mousegen | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Version | |
| required: true | |
| type: string | |
| default: 2.0.7-test | |
| colors: | |
| description: Color themes | |
| required: true | |
| type: string | |
| # Amber Amber-Dark Classic Classic-GE Ice Ice-GE CatLatte CatMocha | |
| default: Classic Ice | |
| xcursors: | |
| description: XCursors (+scalable +hyprcursors) | |
| type: boolean | |
| default: true | |
| windows: | |
| description: Windows cursors | |
| type: boolean | |
| default: true | |
| capes: | |
| description: Mousecape cursors | |
| type: boolean | |
| default: true | |
| leftHanded: | |
| description: Build left-handed cursors, also | |
| type: boolean | |
| zopfliPNG: | |
| description: Zopfli PNG (veery slow) | |
| type: boolean | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| VERSION: ${{ inputs.version }} | |
| MOUSE_COLORS: ${{ inputs.colors }} | |
| MOUSE_LEFTHAND: ${{ inputs.leftHanded }} | |
| MOUSEGEN_OPTS: -Dwincur.PNGEncoder=${{ inputs.zopfliPNG && 'zopfli' || '' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Install dos2unix | |
| run: sudo apt install -y dos2unix | |
| - name: Download pngtastic.jar | |
| if: inputs.zopfliPNG | |
| run: "curl -Lo bin/pngtastic.jar https://repo.maven.apache.org/maven2/\ | |
| com/github/depsypher/pngtastic/1.8/pngtastic-1.8.jar" | |
| - name: KDE scalable cursors | |
| if: inputs.xcursors | |
| run: bin/mousegen-kscalable | |
| - name: Xcursors (+Hyprcursors) | |
| if: inputs.xcursors | |
| run: bin/mousegen-xcursors | |
| - name: Windows cursors | |
| if: inputs.windows | |
| run: bin/mousegen-windows | |
| - name: Mousecape themes | |
| if: inputs.capes | |
| run: bin/mousegen-capes | |
| - uses: actions/upload-artifact@v7 | |
| #if: always() | |
| with: | |
| name: bibata-themes | |
| overwrite: true | |
| compression-level: 0 | |
| #path: themes/ | |
| path: | | |
| themes/Bibata-Mousecape-*.zip | |
| themes/Bibata-Windows-*.zip | |
| themes/Bibata-Xcursors-*.tar.xz |