-
-
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.
- Loading branch information
Showing
4 changed files
with
74 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "google_cursor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "🍭 Cursor theme inspired on Google", | ||
"main": "index.js", | ||
"repository": "[email protected]:ful1e5/Google_Cursor.git", | ||
|
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