Skip to content

Commit

Permalink
Merge branch 'main' into detect-chg
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Dec 14, 2023
2 parents 6c1b3bf + 52ed49b commit 6b1d8fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ jobs:
- name: Install @actions/artifact
run: npm install @actions/artifact
- name: Build and upload artifacts
uses: actions/github-script@v4
uses: actions/github-script@v7
id: boards-list
with:
script: |
const fs = require('fs');
const artifact = require('@actions/artifact');
const artifactClient = artifact.create();
const {default: artifact} = require('@actions/artifact');
const execSync = require('child_process').execSync;
Expand Down Expand Up @@ -90,7 +89,7 @@ jobs:
const cmakeName = shieldArgs['cmake-args'] ? '-' + (shieldArgs.nickname || shieldArgs['cmake-args'].split(' ').join('')) : '';
const artifactName = `${{ matrix.board }}${shieldArgs.shield ? '-' + shieldArgs.shield : ''}${cmakeName}-zmk`;
await artifactClient.uploadArtifact(artifactName, files, rootDirectory, options);
await artifact.uploadArtifact(artifactName, files, rootDirectory, options);
} catch (e) {
console.error(`::error::Failed to build or upload ${{ matrix.board }} ${shieldArgs.shield} ${shieldArgs['cmake-args']}`);
console.error(e);
Expand All @@ -111,7 +110,7 @@ jobs:
include-list: ${{ steps.compile-list.outputs.result }}
steps:
- name: Join build lists
uses: actions/github-script@v4
uses: actions/github-script@v7
id: compile-list
with:
script: |
Expand Down Expand Up @@ -158,7 +157,7 @@ jobs:
node-version: "14.x"
- name: Install js-yaml
run: npm install js-yaml
- uses: actions/github-script@v4
- uses: actions/github-script@v7
id: core-list
with:
script: |
Expand Down Expand Up @@ -187,7 +186,7 @@ jobs:
node-version: "14.x"
- name: Install js-yaml
run: npm install js-yaml
- uses: actions/github-script@v4
- uses: actions/github-script@v7
id: boards-list
with:
script: |
Expand Down Expand Up @@ -264,7 +263,7 @@ jobs:
nightly-include: ${{ steps.nightly-list.outputs.result }}
steps:
- name: Create nightly list
uses: actions/github-script@v4
uses: actions/github-script@v7
id: nightly-list
with:
script: |
Expand Down Expand Up @@ -315,7 +314,7 @@ jobs:
- name: Install js-yaml
run: npm install js-yaml
- name: Aggregate Metadata
uses: actions/github-script@v4
uses: actions/github-script@v7
id: aggregate-metadata
with:
script: |
Expand All @@ -333,7 +332,7 @@ jobs:
result-encoding: string

- name: Organize Metadata
uses: actions/github-script@v4
uses: actions/github-script@v7
id: organize-metadata
with:
script: |
Expand Down Expand Up @@ -390,15 +389,15 @@ jobs:
id: changed-files
with:
format: "json"
- uses: actions/github-script@v4
- uses: actions/github-script@v7
id: board-changes
with:
script: |
const changedFiles = JSON.parse(`${{ steps.changed-files.outputs.all }}`);
const boardChanges = changedFiles.filter(f => f.startsWith('app/boards'));
return boardChanges.length ? 'true' : 'false';
result-encoding: string
- uses: actions/github-script@v4
- uses: actions/github-script@v7
id: core-changes
with:
script: |
Expand Down
4 changes: 2 additions & 2 deletions app/boards/shields/settings_reset/settings_reset.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

/ {
chosen {
zmk,kscan = &kscan0;
zmk,kscan = &settings_reset_kscan;
};

kscan0: kscan {
settings_reset_kscan: settings_reset_kscan {
compatible = "zmk,kscan-mock";
columns = <1>;
rows = <0>;
Expand Down

0 comments on commit 6b1d8fe

Please sign in to comment.