diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a3174c..62b97b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,99 +4,45 @@ on: push: paths-ignore: - "**.md" - - "**.bbcode" - LICENSE + - .github/FUNDING.yml branches: [main, dev] pull_request: paths-ignore: - "**.md" - - "**.bbcode" - LICENSE + - .github/FUNDING.yml branches: [main] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.7", "3.8", "3.9", "3.10"] + steps: - uses: actions/checkout@v2 - - name: Install build dependencies (apt) - run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev - continue-on-error: false - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - name: Caching yarn packages - uses: actions/cache@v2 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - name: Set Up NodeJS 12.x - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Caching pip packages - uses: actions/cache@v2 - id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`) - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Set up Python 3.8 + + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: "3.8" - - name: Generating `BreezeX` Cursor Theme - run: make + python-version: ${{ matrix.python-version }} + + - name: Installing pip dependencies + run: python -m pip install --upgrade pip clickgen continue-on-error: false - - name: Compressing UNIX theme - run: | - tar -cvzf BreezeX-Dark.tar.gz themes/BreezeX-Dark - tar -cvzf BreezeX-Light.tar.gz themes/BreezeX-Light - tar -cvzf BreezeX-Black.tar.gz themes/BreezeX-Black + # https://github.com/returntocorp/semgrep/issues/4794 + - name: Fixing 'attr' module error + run: pip install --force-reinstall --upgrade attrs - - name: Uploading `bitmaps` artifact - uses: actions/upload-artifact@v2 - with: - name: bitmaps - path: bitmaps/* + - name: Building `BreezeX Dark` Cursors + run: ctgen build.toml -d 'bitmaps/BreezeX-Dark' -n 'BreezeX-Dark' -c 'BreezeX Dark cursors.' - - name: Uploading `BreezeX-Dark` UNIX Theme artifact - uses: actions/upload-artifact@v2 - with: - name: BreezeX-Dark - path: BreezeX-Dark.tar.gz + - name: Building `BreezeX Light` Cursors + run: ctgen build.toml -d 'bitmaps/BreezeX-Light' -n 'BreezeX-Light' -c 'BreezeX Light cursors.' - - name: Uploading `BreezeX-Light` UNIX Theme artifact - uses: actions/upload-artifact@v2 - with: - name: BreezeX-Light - path: BreezeX-Light.tar.gz - - - name: Uploading `BreezeX-Black` UNIX Theme artifact - uses: actions/upload-artifact@v2 - with: - name: BreezeX-Black - path: BreezeX-Black.tar.gz - - - name: Uploading `BreezeX-Dark` Windows Theme artifact - uses: actions/upload-artifact@v2 - with: - name: BreezeX-Dark-Windows - path: themes/BreezeX-Dark-Windows/* - - - name: Uploading `BreezeX-Light` Windows Theme artifact - uses: actions/upload-artifact@v2 - with: - name: BreezeX-Light-Windows - path: themes/BreezeX-Light-Windows/* - - - name: Uploading `BreezeX-Black` Windows Theme artifact - uses: actions/upload-artifact@v2 - with: - name: BreezeX-Black-Windows - path: themes/BreezeX-Black-Windows/* + - name: Building `BreezeX Black` Cursors + run: ctgen build.toml -d 'bitmaps/BreezeX-Black' -n 'BreezeX-Black' -c 'BreezeX Black cursors.' diff --git a/README.md b/README.md index 538fab6..e3d7d0b 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,7 @@ Extended KDE cursor, Highly inspired on **KDE Breeze** for `Windows` and `Linux` with _HiDPi Support_ 🎉. -[![Build](https://github.com/ful1e5/BreezeX_Cursor/actions/workflows/build.yml/badge.svg)](https://github.com/ful1e5/BreezeX_Cursor/actions) -[![CodeFactor](https://www.codefactor.io/repository/github/ful1e5/breezex_cursor/badge)](https://www.codefactor.io/repository/github/ful1e5/breezex_cursor) -[![Twitter](https://img.shields.io/badge/twitter-ful1e5-blue)](https://twitter.com/ful1e5) +[![build](https://github.com/ful1e5/BreezeX_Cursor/actions/workflows/build.yml/badge.svg)](https://github.com/ful1e5/BreezeX_Cursor/actions/workflows/build.yml) #### Cursor Sizes