Skip to content

Commit e7f95ad

Browse files
committed
chore(ci): Render bitmaps and build cursor
1 parent d8c0c10 commit e7f95ad

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

.github/workflows/build.yml

+28-22
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,42 @@ on:
1616

1717
jobs:
1818
build:
19-
runs-on: ${{ matrix.os }}
20-
strategy:
21-
matrix:
22-
os: [ubuntu-latest, windows-latest]
23-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
19+
runs-on: "ubuntu-latest"
2420

2521
steps:
26-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2723

28-
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v2
24+
- name: Setup node
25+
uses: actions/setup-node@v4
3026
with:
31-
python-version: ${{ matrix.python-version }}
27+
node-version: 16
3228

33-
- name: Installing pip dependencies
34-
run: python -m pip install --upgrade pip clickgen
29+
- name: Installing Node Dependencies
30+
run: |
31+
rm -rf node_modules yarn.lock
32+
yarn install --frozen-lockfile
3533
continue-on-error: false
3634

37-
# https://github.com/returntocorp/semgrep/issues/4794
38-
- name: Fixing 'attr' module error
39-
run: pip install --force-reinstall --upgrade attrs
35+
- name: Print cbmp version
36+
run: npx cbmp --version
37+
38+
- name: Rendering Bitmaps
39+
run: yarn render
40+
continue-on-error: false
4041

41-
- name: Building `macOS BigSur` Cursors
42-
run: ctgen build.toml -d 'bitmaps/macOS-BigSur' -n 'macOS-BigSur' -c 'macOS BigSur Cursors'
42+
- name: Set up Python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: 3.11
4346

44-
- name: Building `macOS BigSur White` Cursors
45-
run: ctgen build.toml -d 'bitmaps/macOS-BigSur-White' -n 'macOS-BigSur-White' -c 'macOS BigSur White Cursors'
47+
- name: Installing PyPi Dependencies
48+
run: python -m pip install --upgrade pip clickgen
49+
continue-on-error: false
4650

47-
- name: Building `macOS Monterey` Cursors
48-
run: ctgen build.toml -d 'bitmaps/macOS-Monterey' -n 'macOS-Monterey' -c 'macOS Monterey Cursors'
51+
- name: Print clickgen Version
52+
run: |
53+
clickgen --version
54+
ctgen --version
4955
50-
- name: Building `macOS Monterey White` Cursors
51-
run: ctgen build.toml -d 'bitmaps/macOS-Monterey-White' -n 'macOS-Monterey-White' -c 'macOS Monterey White Cursors'
56+
- name: Build
57+
run: yarn build

0 commit comments

Comments
 (0)