Skip to content

Commit

Permalink
Refactor: build with clickgen v2 and cbmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Oct 22, 2022
1 parent 43f0868 commit 7c6ffa4
Show file tree
Hide file tree
Showing 629 changed files with 862 additions and 2,891 deletions.
4 changes: 1 addition & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
liberapay: ful1e5
patreon: ful1e5
custom: https://www.paypal.me/kaizkhatri
github: ful1e5
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/----bug-report.md

This file was deleted.

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/---feature.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

114 changes: 25 additions & 89 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,112 +4,48 @@ 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
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Generating `GoogleDot` Cursor Theme
run: make
continue-on-error: false

- name: Compressing UNIX theme
run: |
tar -cvzf GoogleDot-Blue.tar.gz themes/GoogleDot-Blue
tar -cvzf GoogleDot-Black.tar.gz themes/GoogleDot-Black
tar -cvzf GoogleDot-White.tar.gz themes/GoogleDot-White
tar -cvzf GoogleDot-Red.tar.gz themes/GoogleDot-Red
- name: Uploading `bitmaps` artifact
uses: actions/upload-artifact@v2
with:
name: bitmaps
path: bitmaps/*

- name: Uploading `GoogleDot-Blue` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-Blue
path: GoogleDot-Blue.tar.gz

- name: Uploading `GoogleDot-Black` UNIX Theme artifact
uses: actions/upload-artifact@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
name: GoogleDot-Black
path: GoogleDot-Black.tar.gz
python-version: ${{ matrix.python-version }}

- name: Uploading `GoogleDot-White` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-White
path: GoogleDot-White.tar.gz
- name: Installing pip dependencies
run: python -m pip install --upgrade pip clickgen
continue-on-error: false

- name: Uploading `GoogleDot-Red` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-Red
path: GoogleDot-Red.tar.gz
# https://github.com/returntocorp/semgrep/issues/4794
- name: Fixing 'attr' module error
run: pip install --force-reinstall --upgrade attrs

- name: Uploading `GoogleDot-Blue` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-Blue-Windows
path: themes/GoogleDot-Blue-Windows/*
- name: Building `GoogleDot Blue` Cursors
run: ctgen build.toml -d 'bitmaps/GoogleDot-Blue' -n 'GoogleDot-Blue' -c 'Blue cursor theme inspired on Google'

- name: Uploading `GoogleDot-Black` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-Black-Windows
path: themes/GoogleDot-Black-Windows/*
- name: Building `GoogleDot White` Cursors
run: ctgen build.toml -d 'bitmaps/GoogleDot-White' -n 'GoogleDot-White' -c 'White cursor theme inspired on Google'

- name: Uploading `GoogleDot-White` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-White-Windows
path: themes/GoogleDot-White-Windows/*
- name: Building `GoogleDot Black` Cursors
run: ctgen build.toml -d 'bitmaps/GoogleDot-Black' -n 'GoogleDot-Black' -c 'Black cursor theme inspired on Google'

- name: Uploading `GoogleDot-Red` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot-Red-Windows
path: themes/GoogleDot-Red-Windows/*
- name: Building `GoogleDot Red` Cursors
run: ctgen build.toml -d 'bitmaps/GoogleDot-Red' -n 'GoogleDot-Red' -c 'Red cursor theme inspired on Google'
137 changes: 0 additions & 137 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,143 +1,6 @@
# --------------------------------------------- Custom
bitmaps
themes
bin

# --------------------------------------------- Python

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/


# --------------------------------------------- Nodejs

# Logs
logs
*.log
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Refactor: build with `clickgen v2` and [cbmp](https://github.com/ful1e5/cbmp)
- Add cursor `top_left_arrow` ful1e5/BreezeX_Cursor#10 ful1e5/BreezeX_Cursor#11
- Uninstall docs ful1e5/apple_cursor#79 ful1e5/apple_cursor#80

Expand Down
Loading

0 comments on commit 7c6ffa4

Please sign in to comment.