summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/api.yml41
-rw-r--r--.github/workflows/auto_approve.yml18
-rw-r--r--.github/workflows/auto_tag.yml33
-rw-r--r--.github/workflows/build.yml54
-rw-r--r--.github/workflows/cli.yml27
-rw-r--r--.github/workflows/develop_api.yml43
-rw-r--r--.github/workflows/develop_update.yml34
-rw-r--r--.github/workflows/docs.yml43
-rw-r--r--.github/workflows/feature_branch_update.yml39
-rw-r--r--.github/workflows/format_push.yml5
-rw-r--r--.github/workflows/labeler.yml14
-rw-r--r--.github/workflows/stale.yml64
-rw-r--r--.github/workflows/unit_test.yml5
13 files changed, 58 insertions, 362 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
deleted file mode 100644
index dd3fbdaa92..0000000000
--- a/.github/workflows/api.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-name: Update API Data
-
-on:
- push:
- branches:
- - master
- paths:
- - 'keyboards/**'
- - 'layouts/community/**'
- - 'lib/python/**'
- - 'data/**'
- - '.github/workflows/api.yml'
- 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@v3
- 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: '.build/api_data'
diff --git a/.github/workflows/auto_approve.yml b/.github/workflows/auto_approve.yml
deleted file mode 100644
index dea3f017dd..0000000000
--- a/.github/workflows/auto_approve.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Automatic Approve
-
-on:
- schedule:
- - cron: "*/5 * * * *"
-
-jobs:
- automatic_approve:
- runs-on: ubuntu-latest
-
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: mheap/automatic-approve-action@v1
- with:
- token: ${{ secrets.QMK_BOT_TOKEN }}
- workflows: "format.yml,lint.yml,unit_test.yml"
- dangerous_files: "lib/python/,Makefile,paths.mk,builddefs/"
diff --git a/.github/workflows/auto_tag.yml b/.github/workflows/auto_tag.yml
deleted file mode 100644
index b858d492a6..0000000000
--- a/.github/workflows/auto_tag.yml
+++ /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@v3
- with:
- fetch-depth: 0
-
- - name: Bump version and push tag
- uses: anothrNick/github-tag-action@1.52.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 72f2ea293a..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@v3
- 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 194305e730..0000000000
--- a/.github/workflows/develop_api.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Update Develop API Data
-
-on:
- push:
- branches:
- - develop
- paths:
- - 'keyboards/**'
- - 'layouts/community/**'
- - 'lib/python/**'
- - 'data/**'
- - '.github/workflows/develop_api.yml'
- 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@v3
- with:
- fetch-depth: 1
- persist-credentials: false
-
- - name: Generate API Data
- run: |
- python3 -m pip install -r requirements-dev.txt
- 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: '.build/api_data'
diff --git a/.github/workflows/develop_update.yml b/.github/workflows/develop_update.yml
deleted file mode 100644
index 18ca84162b..0000000000
--- a/.github/workflows/develop_update.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: Update develop after master merge
-
-on:
- push:
- branches:
- - master
-
-jobs:
- develop_update:
- runs-on: ubuntu-latest
-
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v3
- with:
- token: ${{ secrets.QMK_BOT_TOKEN }}
- fetch-depth: 0
-
- - name: Disable automatic eol conversion
- run: |
- echo "* -text" > .git/info/attributes
-
- - name: Checkout develop
- run: |
- git fetch origin master develop
- git checkout develop
-
- - name: Update develop from master
- run: |
- git config --global user.name "QMK Bot"
- git config --global user.email "hello@qmk.fm"
- git merge origin/master
- git push origin develop
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
deleted file mode 100644
index 1497739a0b..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@v3
- 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@v4.4.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/feature_branch_update.yml b/.github/workflows/feature_branch_update.yml
deleted file mode 100644
index 90cd85e355..0000000000
--- a/.github/workflows/feature_branch_update.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-name: Update feature branches after develop merge
-
-on:
- push:
- branches:
- - develop
-
-jobs:
- feature_branch_update:
- runs-on: ubuntu-latest
-
- if: github.repository == 'qmk/qmk_firmware'
-
- strategy:
- matrix:
- branch:
- - xap
-
- steps:
- - uses: actions/checkout@v3
- with:
- token: ${{ secrets.QMK_BOT_TOKEN }}
- fetch-depth: 0
-
- - name: Disable automatic eol conversion
- run: |
- echo "* -text" > .git/info/attributes
-
- - name: Checkout branch
- run: |
- git fetch origin develop ${{ matrix.branch }}
- git checkout ${{ matrix.branch }}
-
- - name: Update branch from develop
- run: |
- git config --global user.name "QMK Bot"
- git config --global user.email "hello@qmk.fm"
- git merge origin/develop
- git push origin ${{ matrix.branch }}
diff --git a/.github/workflows/format_push.yml b/.github/workflows/format_push.yml
index 910bba9a4e..f9c691bdd4 100644
--- a/.github/workflows/format_push.yml
+++ b/.github/workflows/format_push.yml
@@ -2,9 +2,8 @@ name: Lint Format
on:
push:
- branches:
- - master
- - develop
+ paths-ignore:
+ - '**.md'
jobs:
lint:
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
deleted file mode 100644
index 3b99a8f43e..0000000000
--- a/.github/workflows/labeler.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: "Pull Request Labeler"
-
-on:
- pull_request_target:
- types: [opened, synchronize, reopened, ready_for_review, locked]
-
-jobs:
- triage:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/labeler@main
- with:
- repo-token: "${{ secrets.GITHUB_TOKEN }}"
- configuration-path: '.github/labeler.yml'
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
deleted file mode 100644
index 297af8e19c..0000000000
--- a/.github/workflows/stale.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-name: 'Close stale issues and PRs'
-on:
- schedule:
- - cron: '30 1 * * *'
- workflow_dispatch:
-
-permissions:
- issues: write
- pull-requests: write
-
-jobs:
- stale:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/stale@v6
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
-
- remove-stale-when-updated: true
- exempt-draft-pr: true
- ascending: true
- operations-per-run: 150
-
- stale-issue-label: stale
- days-before-issue-stale: 90
- days-before-issue-close: 30
- exempt-issue-labels: bug,in progress,on hold,discussion,to do
-
- stale-issue-message: >
- This issue has been automatically marked as stale because it has not had activity in the
- last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity
- occurs.
-
- For maintainers: Please label with `bug`, `in progress`, `on hold`, `discussion` or `to do` to prevent
- the issue from being re-flagged.
-
- close-issue-message: >
- This issue has been automatically closed because it has not had activity in the last 30 days.
- If this issue is still valid, re-open the issue and let us know.
-
- // [stale-action-closed]
-
- stale-pr-label: stale
- days-before-pr-stale: 45
- days-before-pr-close: 30
- exempt-pr-labels: bug,awaiting review,breaking_change,in progress,on hold
-
- stale-pr-message: >
- Thank you for your contribution!
-
- This pull request has been automatically marked as stale because it has not had
- activity in the last 45 days. It will be closed in 30 days if no further activity occurs.
- Please feel free to give a status update now, or re-open when it's ready.
-
- For maintainers: Please label with `bug`, `awaiting review`, `breaking_change`, `in progress`, or `on hold`
- to prevent the issue from being re-flagged.
-
- close-pr-message: >
- Thank you for your contribution!
-
- This pull request has been automatically closed because it has not had activity in the last 30 days.
- Please feel free to give a status update now, ping for review, or re-open when it's ready.
-
- // [stale-action-closed]
diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml
index c8373441ff..6f03a976ea 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/**'