This repository has been archived on 2025-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dgvigil-keebs/.github/workflows/lint_and_compile.yml
Workflow config file is invalid. Please check your config file: yaml: line 14: did not find expected key

58 lines
2.5 KiB
YAML

name: Lint and Compile
on: [push]
jobs:
lint-and-compile:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup
run: |
python3 -m pip install --user qmk
qmk setup -y
- name: Prep
run: |
ln -s $(pwd)/draculad/ qmk_firmware/keyboards/draculad/keymaps/dgvigil
ln -s $(pwd)/iris/ qmk_firmware/keyboards/keebio/iris/keymaps/dgvigil
ln -s $(pwd)/sweep/ qmk_firmware/keyboards/ferris/keymaps/dgvigil
ln -s $(pwd)/scottogame/ qmk_firmware/keyboards/handwired/scottokeebs/scottogame/keymaps/dgvigil
ln -s $(pwd)/swoop/ qmk_firmware/keyboards/bluebell/swoop/keymaps/dgvigil
ln -s $(pwd)/user/ qmk_firmware/users/dgvigil
- name: Lint
run: |
# run lint check
cd ~/qmk_firmware/
for boardz in ${KEYBOARDS[@]}
qmk lint -km dgvigil -kb $(boardz)
done
- name: Build
run: |
cd ~/qmk_firmware/
for t in draculad keebio/iris/rev8 handwired/scottokeebs/scottogame ferris/sweep bluebell/swoop;
do echo "Building QMK for $t";
qmk compile -kb $t -km dgvigil
done
find -maxdepth 1 -name "*.hex"
find -maxdepth 1 -name "*.uf2"
mkdir -p ~/compiled/firmware
find -maxdepth 1 -name "*.hex" -exec mv -v '{}' ~/compiled/firmware \;
find -maxdepth 1 -name "*.uf2" -exec mv -v '{}' ~/compiled/firmware \;
- name: Set Release Date
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Create GitHub release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{env.RELEASE_DATE}}"
title: ${{ env.ReleaseVersion }}
prerelease: false
files: |
/home/runner/compiled/firmware/*.hex
/home/runner/compiled/firmware/*.uf2
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."