👷 CI & PR template updated

This commit is contained in:
ful1e5 2021-08-24 16:47:02 +05:30
parent f6d3f6c743
commit 076537e770
2 changed files with 88 additions and 93 deletions

View file

@ -1,35 +1,9 @@
<!--
Please make sure you are familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).
Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->
## What kind of change does this PR introduce? ## What kind of change does this PR introduce?
<!-- Is it a Bug fix, feature, docs update, ... --> <!-- Is it a Bug fix, feature, docs update, ... -->
## What is the current behavior?
<!-- You can also link to an open issue here -->
## What is the new behavior?
<!-- if this is a feature change -->
## What steps did you take to test this? This is required before I can merge, make sure to test the flow you've updated.
1. Step A
2. Step B
3. Step C
## Checklist ## Checklist
<!-- Have you done all of these things? -->
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation - [ ] Documentation
- [ ] Testing <!-- We can only merge the PR if this is checked --> - [ ] Testing <!-- We can only merge the PR if this is checked -->
- [ ] Ready to be merged - [ ] Ready to be merged
@ -37,5 +11,4 @@ merge of your pull request!
- [ ] Added myself to contributors table - [ ] Added myself to contributors table
<!-- this is optional, see the contributing guidelines for instructions --> <!-- this is optional, see the contributing guidelines for instructions -->
<!-- feel free to add additional comments -->
<!-- Thank you for contributing! --> <!-- Thank you for contributing! -->

View file

@ -1,71 +1,93 @@
name: build name: build
on: on:
push: push:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- "**.bbcode" - "**.bbcode"
- LICENSE - LICENSE
branches: [main, dev] branches: [main, dev]
pull_request: pull_request:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- "**.bbcode" - "**.bbcode"
- LICENSE - LICENSE
branches: [main] branches: [main]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install build dependencies (apt) - name: Install build dependencies (apt)
run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev
continue-on-error: false continue-on-error: false
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Caching yarn packages - name: Caching yarn packages
uses: actions/cache@v2 uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Set Up NodeJS 12.x
uses: actions/setup-node@v1 - name: Set Up NodeJS 12.x
with: uses: actions/setup-node@v1
node-version: "12.x" with:
- name: Caching pip packages node-version: "12.x"
uses: actions/cache@v2
id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`) - name: Caching pip packages
with: uses: actions/cache@v2
path: ~/.cache/pip id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`)
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} with:
restore-keys: | path: ~/.cache/pip
${{ runner.os }}-pip- key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
- name: Set up Python 3.8 restore-keys: |
uses: actions/setup-python@v2 ${{ runner.os }}-pip-
with:
python-version: "3.8" - name: Set up Python 3.8
- name: Generating `macOSBigSur` Cursor Theme uses: actions/setup-python@v2
run: make with:
continue-on-error: false python-version: "3.8"
- name: Compressing UNIX theme
run: tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur - name: Generating `macOSBigSur` Cursor Theme
- name: Uploading `bitmaps` artifact run: make
uses: actions/upload-artifact@v2 continue-on-error: false
with:
name: bitmaps - name: Compressing UNIX theme
path: bitmaps/* run: |
- name: Uploading `macOSBigSur` UNIX Theme artifact tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur
uses: actions/upload-artifact@v2 tar -cvzf macOSBigSur-White.tar.gz themes/macOSBigSur-White
with:
name: macOSBigSur - name: Uploading `bitmaps` artifact
path: macOSBigSur.tar.gz uses: actions/upload-artifact@v2
- name: Uploading `macOSBigSur` Windows Theme artifact with:
uses: actions/upload-artifact@v2 name: bitmaps
with: path: bitmaps/*
name: macOSBigSur_Windows
path: themes/macOSBigSur_Windows/* - name: Uploading `macOSBigSur` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: macOSBigSur
path: macOSBigSur.tar.gz
- name: Uploading `macOSBigSur-White` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: macOSBigSur-White
path: macOSBigSur-White.tar.gz
- name: Uploading `macOSBigSur` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: macOSBigSur-Windows
path: themes/macOSBigSur-Windows/*
- name: Uploading `macOSBigSur-White` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: macOSBigSur-White-Windows
path: themes/macOSBigSur-White-Windows/*