-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ful1e5/dev
GoogleDot v1.0.1 π
- Loading branch information
Showing
132 changed files
with
3,283 additions
and
1,836 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,73 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
- "**.bbcode" | ||
- LICENSE | ||
branches: [main, dev] | ||
|
||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- "**.bbcode" | ||
- LICENSE | ||
branches: [main] | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
- "**.bbcode" | ||
- LICENSE | ||
branches: [main, dev] | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- "**.bbcode" | ||
- LICENSE | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install build dependencies (apt) | ||
run: | | ||
sudo apt install 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)" | ||
|
||
- 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- | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12.x" | ||
- run: yarn install | ||
- run: yarn render | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Cache pip dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
# This path is specific to Ubuntu | ||
path: ~/.cache/pip | ||
# Look to see if there is a cache hit for the corresponding requirements file | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Install pip dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
continue-on-error: false | ||
|
||
- name: Generating `GoogleDot` Cursor Theme | ||
run: python build.py | ||
|
||
- name: Compressing Artifacts | ||
run: | | ||
tar -cvzf logs.tar.gz build.log | ||
tar -cvzf bitmaps.tar.gz bitmaps | ||
tar -cvzf GoogleDot.tar.gz themes | ||
- name: Uploading `GoogleDot` Build Log artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs | ||
path: logs.tar.gz | ||
|
||
- name: Uploading `bitmaps` artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bitmaps | ||
path: bitmaps.tar.gz | ||
|
||
- name: Uploading `GoogleDot` Theme artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: GoogleDot | ||
path: GoogleDot.tar.gz | ||
build: | ||
runs-on: ubuntu-latest | ||
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.tar.gz themes/GoogleDot | ||
|
||
- name: Uploading `bitmaps` artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bitmaps | ||
path: bitmaps/* | ||
- name: Uploading `GoogleDot` UNIX Theme artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: GoogleDot | ||
path: GoogleDot.tar.gz | ||
- name: Uploading `GoogleDot` Windows Theme artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: GoogleDot_Windows | ||
path: themes/GoogleDot_Windows/* |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
theme := GoogleDot | ||
src := ./themes/$(theme) | ||
|
||
local := ~/.icons | ||
local_dest := $(local)/$(theme) | ||
|
||
root := /usr/share/icons | ||
root_dest := $(root)/$(theme) | ||
|
||
all: clean render build | ||
|
||
unix: clean render bitmaps | ||
@cd builder && make build_unix | ||
|
||
windows: clean render bitmaps | ||
@cd builder && make build_windows | ||
|
||
.PHONY: all | ||
|
||
clean: | ||
@rm -rf bitmaps themes | ||
|
||
render: bitmapper svg | ||
@cd bitmapper && $(MAKE) | ||
|
||
build: bitmaps | ||
@cd builder && $(MAKE) | ||
|
||
.ONESHELL: | ||
SHELL:=/bin/bash | ||
|
||
|
||
install: $(src) | ||
@if [[ $EUID -ne 0 ]]; then | ||
@echo "> Installing '$(theme)' cursors inside $(local)/..." | ||
@mkdir -p $(local) | ||
@cp -r $(src) $(local_dest) && echo "> Installed!" | ||
@else | ||
@echo "> Installing '$(theme)' cursors inside $(root)/..." | ||
@mkdir -p $(root) | ||
@sudo cp -r $(src) $(root_dest) && echo "> Installed!" | ||
@fi | ||
|
||
uninstall: | ||
@if [[ $EUID -ne 0 ]]; then | ||
@echo "> Removing '$(local_dest)'..." | ||
@rm -rf $(local_dest) | ||
@else | ||
@echo "> Removing '$(root_dest)'..." | ||
@sudo rm -rf $(root_dest) | ||
@fi | ||
|
||
reinstall: uninstall install |
Oops, something went wrong.