This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
96 lines (79 loc) · 2.78 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: build
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
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 `Bibata-Rainbow-Modern` Cursor Theme
run: make modern
- name: Compressing `Bibata-Rainbow-Modern` Cursor Theme
run: tar -cvzf Bibata-Modern.tar.gz themes/*
- name: Uploading `Bibata-Rainbow-Modern` Bitmaps artifact
uses: actions/upload-artifact@v2
with:
name: Bibata-Rainbow-Modern-Bitmaps
path: bitmaps/*
- name: Uploading `Bibata-Rainbow-Modern` Theme artifact
uses: actions/upload-artifact@v2
with:
name: Bibata-Rainbow-Modern
path: Bibata-Rainbow-Modern.tar.gz
- name: Generating `Bibata-Rainbow-Original` Cursor Theme
run: make original
- name: Compressing `Bibata-Rainbow-Original` Cursor Theme
run: tar -cvzf Bibata-Rainbow-Original.tar.gz themes/*
- name: Uploading `Bibata-Rainbow-Original` Bitmaps artifact
uses: actions/upload-artifact@v2
with:
name: Bibata-Rainbow-Original-Bitmaps
path: bitmaps/*
- name: Uploading `Bibata-Rainbow-Original` Theme artifact
uses: actions/upload-artifact@v2
with:
name: Bibata-Rainbow-Original
path: Bibata-Rainbow-Original.tar.gz