summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md35
-rw-r--r--.github/workflows/api.yml38
-rw-r--r--.github/workflows/auto_tag.yaml33
-rw-r--r--.github/workflows/build.yml54
-rw-r--r--.github/workflows/cli.yml27
-rw-r--r--.github/workflows/develop_api.yml38
-rw-r--r--.github/workflows/docs.yml43
-rw-r--r--.github/workflows/format_push.yaml5
-rw-r--r--.github/workflows/unit_test.yml5
9 files changed, 58 insertions, 220 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index d402488d40..0000000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,35 +0,0 @@
-<!--- Provide a general summary of your changes in the title above. -->
-
-<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
-<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
-
-## Description
-
-<!--- Describe your changes in detail here. -->
-
-## Types of Changes
-
-<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply. -->
-- [ ] Core
-- [ ] Bugfix
-- [ ] New feature
-- [ ] Enhancement/optimization
-- [ ] Keyboard (addition or update)
-- [ ] Keymap/layout/userspace (addition or update)
-- [ ] Documentation
-
-## Issues Fixed or Closed by This PR
-
-*
-
-## Checklist
-
-<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
-<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
-- [ ] My code follows the code style of this project: [**C**](https://docs.qmk.fm/#/coding_conventions_c), [**Python**](https://docs.qmk.fm/#/coding_conventions_python)
-- [ ] I have read the [**PR Checklist** document](https://docs.qmk.fm/#/pr_checklist) and have made the appropriate changes.
-- [ ] My change requires a change to the documentation.
-- [ ] I have updated the documentation accordingly.
-- [ ] I have read the [**CONTRIBUTING** document](https://docs.qmk.fm/#/contributing).
-- [ ] I have added tests to cover my changes.
-- [ ] I have tested the changes and verified that they work and don't break anything (as well as I can manage).
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
deleted file mode 100644
index a19667f97e..0000000000
--- a/.github/workflows/api.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Update API Data
-
-on:
- push:
- branches:
- - master
- paths:
- - 'keyboards/**'
- - 'layouts/community/**'
- workflow_dispatch:
-
-jobs:
- api_data:
- runs-on: ubuntu-latest
- container: qmkfm/qmk_cli
-
- # protect against those who develop with their fork on master
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
- persist-credentials: false
-
- - name: Generate API Data
- run: qmk generate-api
-
- - name: Upload API Data
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks --delete
- env:
- AWS_S3_BUCKET: ${{ secrets.API_SPACE_MASTER }}
- AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }}
- AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
- SOURCE_DIR: 'api_data'
diff --git a/.github/workflows/auto_tag.yaml b/.github/workflows/auto_tag.yaml
deleted file mode 100644
index 29e85c41ca..0000000000
--- a/.github/workflows/auto_tag.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-name: Essential files modified
-
-on:
- push:
- branches:
- - master
- paths:
- - quantum/**/*
- - tmk_core/**/*
- - drivers/**/*
- - tests/**/*
- - util/**/*
- - platforms/**/*
- - Makefile
- - '*.mk'
-
-jobs:
- tag:
- runs-on: ubuntu-latest
-
- # protect against those who develop with their fork on master
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- - name: Bump version and push tag
- uses: anothrNick/github-tag-action@1.26.0
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- DEFAULT_BUMP: 'patch'
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000000..af9ce081a3
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,54 @@
+name: Build firmware
+on:
+ push:
+ paths-ignore:
+ - '**.md'
+ pull_request:
+ paths-ignore:
+ - '**.md'
+ workflow_dispatch:
+
+
+jobs:
+ build-firmware:
+ runs-on: ubuntu-latest
+ container: qmkfm/qmk_cli
+ strategy:
+ fail-fast: false
+ matrix:
+ keyboard:
+ - ergodox_ez
+ - ergodox_ez/shine
+ - ergodox_ez/glow
+ - moonlander
+ - planck/ez
+ - planck/ez/glow
+ keymap:
+ - default
+ - oryx
+
+ steps:
+ - name: Checkout QMK Firmware
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 1
+ persist-credentials: false
+ submodules: true
+
+ - name: Build
+ id: build
+ run: |
+ qmk compile -kb ${{ matrix.keyboard}} -km ${{ matrix.keymap }}
+
+ TARGET="$(echo "${{ matrix.keyboard }}" | sed 's#/#_#g')_${{matrix.keymap}}"
+ echo ::set-output name=artifact-name::${TARGET}
+ echo "Artifact-name: ${{ steps.build.outputs.artifact-name }}"
+
+ - name: Archive artifacts
+ uses: actions/upload-artifact@v2
+ with:
+ name: "${{ steps.build.outputs.artifact-name }}"
+ path: |
+ *.hex
+ *.bin
+ continue-on-error: true
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
deleted file mode 100644
index 2ea810958b..0000000000
--- a/.github/workflows/cli.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: CLI CI
-
-on:
- push:
- branches:
- - master
- - develop
- pull_request:
- paths:
- - 'lib/python/**'
- - 'requirements.txt'
- - '.github/workflows/cli.yml'
-
-jobs:
- test:
- runs-on: ubuntu-latest
-
- container: qmkfm/qmk_cli
-
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Install dependencies
- run: pip3 install -r requirements-dev.txt
- - name: Run tests
- run: qmk pytest
diff --git a/.github/workflows/develop_api.yml b/.github/workflows/develop_api.yml
deleted file mode 100644
index f0098142c7..0000000000
--- a/.github/workflows/develop_api.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Update Develop API Data
-
-on:
- push:
- branches:
- - develop
- paths:
- - 'keyboards/**'
- - 'layouts/community/**'
- workflow_dispatch:
-
-jobs:
- api_data:
- runs-on: ubuntu-latest
- container: qmkfm/qmk_cli
-
- # protect against those who work in their fork on develop
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
- persist-credentials: false
-
- - name: Generate API Data
- run: qmk generate-api
-
- - name: Upload API Data
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks --delete
- env:
- AWS_S3_BUCKET: ${{ secrets.API_SPACE_DEVELOP }}
- AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }}
- AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
- SOURCE_DIR: 'api_data'
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
deleted file mode 100644
index 1ee3ae3964..0000000000
--- a/.github/workflows/docs.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Generate Docs
-
-on:
- push:
- branches:
- - master
- paths:
- - 'tmk_core/**'
- - 'quantum/**'
- - 'platforms/**'
- - 'docs/**'
- - '.github/workflows/docs.yml'
-
-jobs:
- generate:
- runs-on: ubuntu-latest
- container: qmkfm/qmk_cli
-
- # protect against those who develop with their fork on master
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
-
- - name: Install dependencies
- run: |
- apt-get update && apt-get install -y rsync nodejs npm doxygen
- npm install -g moxygen
-
- - name: Build docs
- run: |
- qmk --verbose generate-docs
-
- - name: Deploy
- uses: JamesIves/github-pages-deploy-action@3.7.1
- with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BASE_BRANCH: master
- BRANCH: gh-pages
- FOLDER: .build/docs
- GIT_CONFIG_EMAIL: hello@qmk.fm
diff --git a/.github/workflows/format_push.yaml b/.github/workflows/format_push.yaml
index 4b51213b36..2f5b679499 100644
--- a/.github/workflows/format_push.yaml
+++ b/.github/workflows/format_push.yaml
@@ -2,9 +2,8 @@ name: Lint Format
on:
push:
- branches:
- - master
- - develop
+ paths-ignore:
+ - '**.md'
jobs:
lint:
diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml
index 26bcb2f511..9e897a2bd9 100644
--- a/.github/workflows/unit_test.yml
+++ b/.github/workflows/unit_test.yml
@@ -2,9 +2,8 @@ name: Unit Tests
on:
push:
- branches:
- - master
- - develop
+ paths-ignore:
+ - '**.md'
pull_request:
paths:
- 'builddefs/**'