Skip to content

Commit

Permalink
ci: Use new build for Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Jun 30, 2024
1 parent a9897ab commit 375fb1c
Show file tree
Hide file tree
Showing 3 changed files with 1,018 additions and 202 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,43 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: Setup node
uses: actions/setup-node@v4
with:
python-version: ${{ matrix.python-version }}
node-version: 16

- name: Installing pip dependencies
run: python -m pip install --upgrade pip clickgen
- name: Installing Node Dependencies
run: |
rm -rf node_modules yarn.lock
yarn install --frozen-lockfile
continue-on-error: false

# https://github.com/returntocorp/semgrep/issues/4794
- name: Fixing 'attr' module error
run: pip install --force-reinstall --upgrade attrs
- name: Print cbmp version
run: npx cbmp --version

# - name: Rendering Bitmaps
# run: yarn render
# continue-on-error: false

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Building `BreezeX Dark` Cursors
run: ctgen build.toml -d 'bitmaps/BreezeX-Dark' -n 'BreezeX-Dark' -c 'BreezeX Dark cursors.'
- name: Installing PyPi Dependencies
run: python -m pip install --upgrade pip clickgen
continue-on-error: false

- name: Building `BreezeX Light` Cursors
run: ctgen build.toml -d 'bitmaps/BreezeX-Light' -n 'BreezeX-Light' -c 'BreezeX Light cursors.'
- name: Print clickgen Version
run: |
clickgen --version
ctgen --version
- name: Building `BreezeX Black` Cursors
run: ctgen build.toml -d 'bitmaps/BreezeX-Black' -n 'BreezeX-Black' -c 'BreezeX Black cursors.'
# - name: Build
# run: yarn build
13 changes: 2 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
{
"dependencies": {
"cbmp": "ful1e5/cbmp"
"cbmp": "^1.1.1"
},
"scripts": {
"render:breezex-dark": "npx cbmp -d 'svg' -n 'BreezeX-Dark' -bc '#4D4D4D' -oc '#FFFFFF'",
"render:breezex-light": "npx cbmp -d 'svg' -n 'BreezeX-Light' -bc '#FFFFFF' -oc '#4D4D4D'",
"render:breezex-black": "npx cbmp -d 'svg' -n 'BreezeX-Black' -bc '#000000' -oc '#FFFFFF'",
"render": "yarn render:breezex-dark && yarn render:breezex-light && yarn render:breezex-black",
"build:breezex-dark": "ctgen build.toml -d 'bitmaps/BreezeX-Dark' -n 'BreezeX-Dark' -c 'BreezeX Dark cursors.'",
"build:breezex-light": "ctgen build.toml -d 'bitmaps/BreezeX-Light' -n 'BreezeX-Light' -c 'BreezeX Light cursors.'",
"build:breezex-black": "ctgen build.toml -d 'bitmaps/BreezeX-Black' -n 'BreezeX-Black' -c 'BreezeX Black cursors.'",
"build": "yarn build:breezex-dark && yarn build:breezex-light && yarn build:breezex-black"
}
"scripts": {}
}
Loading

0 comments on commit 375fb1c

Please sign in to comment.