{"id":16251807,"url":"https://github.com/mcspr/espurna-nightly-builder","last_synced_at":"2025-03-19T20:31:08.754Z","repository":{"id":111422767,"uuid":"129315363","full_name":"mcspr/espurna-nightly-builder","owner":"mcspr","description":"Development branch builder for ESPurna","archived":false,"fork":false,"pushed_at":"2023-12-18T14:46:41.000Z","size":240,"stargazers_count":8,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"builder","last_synced_at":"2025-03-17T10:51:31.777Z","etag":null,"topics":["automation","esp8266","esp8266-arduino","espurna","firmware","github-actions","home","home-automation","nightly-build"],"latest_commit_sha":null,"homepage":"https://github.com/xoseperez/espurna","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcspr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-12T21:56:38.000Z","updated_at":"2024-02-23T13:04:59.000Z","dependencies_parsed_at":"2024-10-27T21:32:54.258Z","dependency_job_id":"f34d4fc3-9bfb-4695-acb9-013889c3ce03","html_url":"https://github.com/mcspr/espurna-nightly-builder","commit_stats":null,"previous_names":[],"tags_count":184,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcspr%2Fespurna-nightly-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcspr%2Fespurna-nightly-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcspr%2Fespurna-nightly-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcspr%2Fespurna-nightly-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcspr","download_url":"https://codeload.github.com/mcspr/espurna-nightly-builder/tar.gz/refs/heads/builder","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244501255,"owners_count":20462833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","esp8266","esp8266-arduino","espurna","firmware","github-actions","home","home-automation","nightly-build"],"created_at":"2024-10-10T15:11:25.351Z","updated_at":"2025-03-19T20:31:08.748Z","avatar_url":"https://github.com/mcspr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESPurna Nightly Builder\n[![latest nightly build](https://img.shields.io/github/release/mcspr/espurna-nightly-builder/all.svg?label=Latest%20nightly)](https://github.com/mcspr/espurna-nightly-builder/releases)\n[![.github/workflows/lint.yml](https://github.com/mcspr/espurna-nightly-builder/actions/workflows/lint.yml/badge.svg?branch=builder)](https://github.com/mcspr/espurna-nightly-builder/actions/workflows/lint.yml)\n[![.github/workflows/prepare.yml](https://github.com/mcspr/espurna-nightly-builder/actions/workflows/prepare.yml/badge.svg?branch=builder)](https://github.com/mcspr/espurna-nightly-builder/actions/workflows/prepare.yml)\n[![.github/workflows/nightly.yml](https://github.com/mcspr/espurna-nightly-builder/actions/workflows/nightly.yml/badge.svg?branch=builder)](https://github.com/mcspr/espurna-nightly-builder/actions/workflows/nightly.yml)\n\n# Nightly build?\n\nThis repo is used to build binary release of [ESPurna](https://github.com/xoseperez/espurna) from latest commit to the [`dev`](https://github.com/xoseperez/espurna/tree/dev) branch.\n\n# Technical info\n[Scheduled events](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events) are used to trigger the build. See [.github/workflows/prepare.yml](https://github.com/mcspr/espurna-nightly-builder/blob/builder/.github/workflows/prepare.yml), [.github/workflows/nightly.yml](https://github.com/mcspr/espurna-nightly-builder/blob/builder/.github/workflows/nightly.yml) and [espurna\\_nightly\\_builder helper scripts](https://github.com/mcspr/espurna-nightly-builder/tree/builder/espurna_nightly_builder).\n\nBoth workflows can be triggered with [a workflow\\_dispatch event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#manual-events).\n\n## prepare.yml\n\nSee [.github/workflows/prepare.yml](https://github.com/mcspr/espurna-nightly-builder/blob/builder/.github/workflows/prepare.yml)  \n\nThis workflow is (supposed to be) triggered on a schedule. Unless the following tests pass, this stage will result in an error:\n- The commit that 'dev' branch points at is different from the 'commit.txt' contents.\n- All [Checks](https://docs.github.com/en/rest/reference/checks) of the target repository 'dev' branch are successful.\n- 'master' branch does not point to the same commit as 'dev', as we don't want to re-do the `master` release.\n\nFinally, the ['commit.txt'](https://github.com/mcspr/espurna-nightly-builder/blob/nightly/commit.txt) is updated with the latest SHA value of the 'dev' branch.\n\n## nightly.yml\n\nSee [.github/workflows/nightly.yml](https://github.com/mcspr/espurna-nightly-builder/blob/builder/.github/workflows/nightly.yml)  \n\nWhen 'prepare.yml' is successful or user triggers the workflow manually:\n- 'nightly' branch is fetched with fetch depth 2, and HEAD and HEAD~1 'commit.txt' contents are saved.\n- Target repository is fetched using the HEAD commit and the [generate\\_release\\_sh.py](https://github.com/xoseperez/espurna/blob/dev/code/scripts/generate_release_sh.py) script is called (which is also used to build the `master` branch release)\n- New pre-release is created with a tag YYYYMMDD, based on the latest modification date of the 'commit.txt'. Body should contain the HEAD~1...HEAD comparison URL.\n- All of .bin files are uploaded as assets of the pre-release.\n\n## Known issues\n\n\u003e Incomplete and not working right now\n\n[.gitlab-ci.yml](https://github.com/mcspr/espurna-nightly-builder/blob/builder/.gitlab-ci.yml) uses the same process as original Travis build script, but with notable differences:\n- Custom container image (see [Dockerfile](https://github.com/mcspr/espurna-nightly-builder/blob/builder/Dockerfile)) is used\n- It is pretending to be Travis for [build.sh](https://github.com/mcspr/espurna-nightly-builder/blob/f702837ed95bf1174584269e7fd6f75fe4acf85c/.gitlab-ci.yml#L65)\n- [Build takes more time than travis](https://gitlab.com/mcspr/espurna-travis-test/pipelines/25418527)\n\n# TODO\n\n- [x] GitHub commit status / GitHub Checks for 'nightly' branch\n- [x] Hide commit status for 'builder' branch\n- [x] Hide releases until build is complete\n- [x] Redo build completely when triggered by API (remove tag, release and it's assets)\n- [ ] GitLab integration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcspr%2Fespurna-nightly-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcspr%2Fespurna-nightly-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcspr%2Fespurna-nightly-builder/lists"}