-
-
Notifications
You must be signed in to change notification settings - Fork 11
Nightly builds #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Nightly builds #115
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: PlatformIO CI | ||
|
|
||
| # Only included into other workflows | ||
| on: | ||
| workflow_call: | ||
|
|
||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cache/pip | ||
| ~/.platformio/.cache | ||
| key: ${{ runner.os }}-pio | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install PlatformIO Core | ||
| run: pip install --upgrade platformio | ||
|
|
||
| - name: Build PlatformIO Project | ||
| run: pio run | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,12 @@ | ||
| name: PlatformIO CI | ||
|
|
||
| on: [push] | ||
| on: | ||
| push: | ||
| branches: | ||
| - '*' | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| uses: ./.github/workflows/build.yml | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cache/pip | ||
| ~/.platformio/.cache | ||
| key: ${{ runner.os }}-pio | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install PlatformIO Core | ||
| run: pip install --upgrade platformio | ||
|
|
||
| - name: Build PlatformIO Project | ||
| run: pio run |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,43 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: Deploy Nightly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # This can be used to automatically publish nightlies at UTC nighttime | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| schedule: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - cron: '0 2 * * *' # run at 2 AM UTC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # This can be used to allow manually triggering nightlies from the web interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wled_build: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: ./.github/workflows/build.yml | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nightly: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reusable workflow path is wrong.
🛠️ Proposed fix wled_build:
- uses: ./.github/workflows/build.yml
+ uses: ./.github/workflows/build.yaml📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.10)12-12: could not read reusable workflow file for "./.github/workflows/build.yml": open /home/jailuser/git/.github/workflows/build.yml: no such file or directory (workflow-call) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: Deploy nightly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| needs: wled_build | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Release job likely needs explicit write permissions. Creating/updating a release requires 🔧 Proposed fix name: Deploy Nightly
on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
workflow_dispatch:
+
+permissions:
+ contents: write📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.10)12-12: could not read reusable workflow file for "./.github/workflows/build.yml": open /home/jailuser/git/.github/workflows/build.yml: no such file or directory (workflow-call) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Download artifacts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/download-artifact@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| merge-multiple: true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Show Files | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| run: ls -la | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: "✏️ Generate release changelog" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id: changelog | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: janheinrichmerker/action-github-changelog-generator@v2.3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sinceTag: v0.8.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Exclude issues that were closed without resolution from changelog | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| exclude-labels: 'stale,wontfix,duplicate,invalid' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Update Nightly Release | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: andelf/nightly-release@main | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+32
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n .github/workflows/nightly.yml | sed -n '30,35p'Repository: MoonModules/MoonLight Length of output: 388 🌐 Web query:
💡 Result: I couldn’t find a publicly accessible GitHub repository page (or its Releases/Tags) for If you do have access, here’s how to determine the Action’s available release versions/tags:
For Actions versioning best practice: publish immutable semver tags (e.g. Sources 🏁 Script executed: git ls-remote --tags https://github.com/andelf/nightly-release.git | head -20Repository: MoonModules/MoonLight Length of output: 409 Pin Using 🔒 Proposed fix (example)- - name: Update Nightly Release
- uses: andelf/nightly-release@main
+ - name: Update Nightly Release
+ uses: andelf/nightly-release@v0.0.4📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tag_name: nightly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Nightly Release $$' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| prerelease: true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| body: ${{ steps.changelog.outputs.changelog }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| files: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *.bin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *.bin.gz | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 179
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 620
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 415
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 1373
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 146
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 645
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 47
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 81
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 15425
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 47
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 124
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 272
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 93
🏁 Script executed:
# Double-check the exact reference in ci-pio.yaml too cat .github/workflows/ci-pio.yamlRepository: MoonModules/MoonLight
Length of output: 146
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 92
🏁 Script executed:
# Check if there are any scripts that might define the output paths ls -la scripts/Repository: MoonModules/MoonLight
Length of output: 577
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 2925
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 2539
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 230
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 1026
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 47
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 107
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 47
🏁 Script executed:
Repository: MoonModules/MoonLight
Length of output: 126
Nightly release will have no binaries without an artifact upload.
The reusable build job never uploads artifacts, but the nightly workflow later downloads artifacts and attaches
*.binfiles to a release. Add an upload step to make the binaries available to downstream jobs.The post-build scripts (
rename_fw.py,merge_bin.py) output binaries tobuild/release/andbuild/merged/directories, not.pio/build/.🔧 Proposed fix (upload build outputs)
- name: Build PlatformIO Project run: pio run + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: platformio-build + path: build/**/*.bin📝 Committable suggestion
🤖 Prompt for AI Agents