|
1 | 1 | name: build |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - paths-ignore: |
6 | | - - "**.md" |
7 | | - - "**.bbcode" |
8 | | - - LICENSE |
9 | | - branches: [main, dev] |
10 | | - pull_request: |
11 | | - paths-ignore: |
12 | | - - "**.md" |
13 | | - - "**.bbcode" |
14 | | - - LICENSE |
15 | | - branches: [main] |
| 4 | + push: |
| 5 | + paths-ignore: |
| 6 | + - "**.md" |
| 7 | + - "**.bbcode" |
| 8 | + - LICENSE |
| 9 | + branches: [main, dev] |
| 10 | + pull_request: |
| 11 | + paths-ignore: |
| 12 | + - "**.md" |
| 13 | + - "**.bbcode" |
| 14 | + - LICENSE |
| 15 | + branches: [main] |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - build: |
19 | | - runs-on: ubuntu-latest |
20 | | - steps: |
21 | | - - uses: actions/checkout@v2 |
22 | | - - name: Install build dependencies (apt) |
23 | | - run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev |
24 | | - continue-on-error: false |
25 | | - - name: Get yarn cache directory path |
26 | | - id: yarn-cache-dir-path |
27 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
28 | | - - name: Caching yarn packages |
29 | | - uses: actions/cache@v2 |
30 | | - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
31 | | - with: |
32 | | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
33 | | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
34 | | - restore-keys: | |
35 | | - ${{ runner.os }}-yarn- |
36 | | - - name: Set Up NodeJS 12.x |
37 | | - uses: actions/setup-node@v1 |
38 | | - with: |
39 | | - node-version: "12.x" |
40 | | - - name: Caching pip packages |
41 | | - uses: actions/cache@v2 |
42 | | - id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`) |
43 | | - with: |
44 | | - path: ~/.cache/pip |
45 | | - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} |
46 | | - restore-keys: | |
47 | | - ${{ runner.os }}-pip- |
48 | | - - name: Set up Python 3.8 |
49 | | - uses: actions/setup-python@v2 |
50 | | - with: |
51 | | - python-version: "3.8" |
52 | | - - name: Generating `macOSBigSur` Cursor Theme |
53 | | - run: make |
54 | | - continue-on-error: false |
55 | | - - name: Compressing UNIX theme |
56 | | - run: tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur |
57 | | - - name: Uploading `bitmaps` artifact |
58 | | - uses: actions/upload-artifact@v2 |
59 | | - with: |
60 | | - name: bitmaps |
61 | | - path: bitmaps/* |
62 | | - - name: Uploading `macOSBigSur` UNIX Theme artifact |
63 | | - uses: actions/upload-artifact@v2 |
64 | | - with: |
65 | | - name: macOSBigSur |
66 | | - path: macOSBigSur.tar.gz |
67 | | - - name: Uploading `macOSBigSur` Windows Theme artifact |
68 | | - uses: actions/upload-artifact@v2 |
69 | | - with: |
70 | | - name: macOSBigSur_Windows |
71 | | - path: themes/macOSBigSur_Windows/* |
| 18 | + build: |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v2 |
| 22 | + - name: Install build dependencies (apt) |
| 23 | + run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev |
| 24 | + continue-on-error: false |
| 25 | + - name: Get yarn cache directory path |
| 26 | + id: yarn-cache-dir-path |
| 27 | + run: echo "::set-output name=dir::$(yarn cache dir)" |
| 28 | + - name: Caching yarn packages |
| 29 | + uses: actions/cache@v2 |
| 30 | + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
| 31 | + with: |
| 32 | + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| 33 | + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| 34 | + restore-keys: | |
| 35 | + ${{ runner.os }}-yarn- |
| 36 | +
|
| 37 | + - name: Set Up NodeJS 12.x |
| 38 | + uses: actions/setup-node@v1 |
| 39 | + with: |
| 40 | + node-version: "12.x" |
| 41 | + |
| 42 | + - name: Caching pip packages |
| 43 | + uses: actions/cache@v2 |
| 44 | + id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`) |
| 45 | + with: |
| 46 | + path: ~/.cache/pip |
| 47 | + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} |
| 48 | + restore-keys: | |
| 49 | + ${{ runner.os }}-pip- |
| 50 | +
|
| 51 | + - name: Set up Python 3.8 |
| 52 | + uses: actions/setup-python@v2 |
| 53 | + with: |
| 54 | + python-version: "3.8" |
| 55 | + |
| 56 | + - name: Generating `macOSBigSur` Cursor Theme |
| 57 | + run: make |
| 58 | + continue-on-error: false |
| 59 | + |
| 60 | + - name: Compressing UNIX theme |
| 61 | + run: | |
| 62 | + tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur |
| 63 | + tar -cvzf macOSBigSur-White.tar.gz themes/macOSBigSur-White |
| 64 | +
|
| 65 | + - name: Uploading `bitmaps` artifact |
| 66 | + uses: actions/upload-artifact@v2 |
| 67 | + with: |
| 68 | + name: bitmaps |
| 69 | + path: bitmaps/* |
| 70 | + |
| 71 | + - name: Uploading `macOSBigSur` UNIX Theme artifact |
| 72 | + uses: actions/upload-artifact@v2 |
| 73 | + with: |
| 74 | + name: macOSBigSur |
| 75 | + path: macOSBigSur.tar.gz |
| 76 | + |
| 77 | + - name: Uploading `macOSBigSur-White` UNIX Theme artifact |
| 78 | + uses: actions/upload-artifact@v2 |
| 79 | + with: |
| 80 | + name: macOSBigSur-White |
| 81 | + path: macOSBigSur-White.tar.gz |
| 82 | + |
| 83 | + - name: Uploading `macOSBigSur` Windows Theme artifact |
| 84 | + uses: actions/upload-artifact@v2 |
| 85 | + with: |
| 86 | + name: macOSBigSur-Windows |
| 87 | + path: themes/macOSBigSur-Windows/* |
| 88 | + |
| 89 | + - name: Uploading `macOSBigSur-White` Windows Theme artifact |
| 90 | + uses: actions/upload-artifact@v2 |
| 91 | + with: |
| 92 | + name: macOSBigSur-White-Windows |
| 93 | + path: themes/macOSBigSur-White-Windows/* |
0 commit comments