Commit Graph

38 Commits

Author SHA1 Message Date
FintasticMan
3a7dfdba8e workflows: Fix InfiniSim CI build
InfiniSim has removed the libpng submodule and moved it to a system
dependency.
2023-09-18 15:26:09 +02:00
Finlay Davidson
3b084d74c3 branches: Update files to refer to main instead of develop 2023-03-02 09:45:47 +02:00
Riku Isokoski
cb91943f12 workflow: Updated workflow comment for all
The previous version failed, because it looked for the check from the
branch in the fork, but looked for it in the main repo. Now uses the sha
to get the commit on which checks were run.

Previous description

This works by uploading the data from the main workflow with low
permissions as an artifact, then downloading the data in a workflow with
higher permissions to post the comment.

Third party actions are fixed at a commit, in case they get compromised.

Also set the build-firmware VM to ubuntu-22.04, which was missed when
updating workflow deps earlier.
2023-01-31 21:56:24 +02:00
Riku Isokoski
3e964e20ac Revert "workflow: Comment build size on all PRs"
This reverts commit 012c3d25f3.
2023-01-31 09:33:56 +02:00
Riku Isokoski
012c3d25f3 workflow: Comment build size on all PRs
This works by uploading the data from the main workflow with low
permissions as an artifact, then downloading the data in a workflow with
higher permissions to post the comment.

Third party actions are fixed at a commit, in case they get compromised.

Also set the build-firmware VM to ubuntu-22.04, which was missed when
updating workflow deps earlier.
2023-01-31 09:21:02 +02:00
Riku Isokoski
056b0f5b3f build-size-workflow: Fix when base gets updated
The github.event.pull_request.base.sha in the workflow doesn't get
updated when there are new commits in the base branch. Instead always
checkout the branch to check the sha manually and cache only the build.

The ownership fix seems to still be necessary
2023-01-28 17:58:43 +02:00
Riku Isokoski
7508dd74ee
Update workflow dependencies (#1504)
* Update workflow dependencies

ubuntu-latest vm has been updated from 20.04 to 22.04.
To avoid sudden issues, use 22.04 explicitly.
CMake doesn't need to be updated on 22.04, but ninja must be installed separately in the simulator workflow.
actions/checkout@v2 uses deprecated Node.js 12.
Update to v3 which uses 16
2023-01-12 22:04:25 +02:00
Riku Isokoski
09db67e003 workflow: echo build diffs for viewing without the comment 2023-01-07 20:58:18 +02:00
Riku Isokoski
dca11812c2 workflows: Disable build size comment in fork PRs
Due to a security concern, comments can only be created in the context
of branches in the repo. PRs from forks can't get the comment.

https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#restrictions-on-repository-forks
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2023-01-07 20:58:18 +02:00
Riku Isokoski
028d40860d workflows: Add build size comparison workflow
Add .github/workflows/getSize.sh to extract sizes of sections from the
objfile

build-firmware uses getSize.sh to output the section sizes.

get-base-ref-size job added, which builds the base branch of the PR and
outputs the section sizes. Caches are used to avoid unnecessary builds
when the base branch hasn't been updated.

leave-build-size-comment job added, which creates or updates a comment
on the PR with the build size information from other jobs.
2023-01-07 18:56:15 +02:00
Riku Isokoski
499f0875d3 workflows: Update workflow dependency
The workaround is no longer necessary
2023-01-07 18:56:15 +02:00
NeroBurner
4ab99d0d4b
CI: disable BUILD_RESOURCES for InfiniSim as already done in firmware (#1366) 2022-10-11 22:30:51 +02:00
Jean-François Milants
6dd67eb5a2 CI worklow "build-firmware" : add the infinitime-resources packages to the build artifacts. 2022-10-11 17:25:40 +02:00
mashuptwice
4fdb06acd9 Merge remote-tracking branch 'upstream/develop' into workflow-ignore-md 2022-08-25 11:34:12 +02:00
mashuptwice
5c253c10a8 Merge remote-tracking branch 'upstream/develop' into workflow-ignore-md 2022-08-25 10:56:09 +02:00
Riku Isokoski
f53e75063b
Merge CI to deduplicate events (#1279) 2022-08-25 08:32:46 +03:00
Riku Isokoski
e02b58bf1b
Move all images to doc. Remove old images. (#1282) 2022-08-21 14:42:53 +03:00
mashuptwice
d00a5d1e37 workflow: ignore changes in *.md files 2022-08-11 01:42:17 +02:00
Finlay Davidson
fdad3fc985 Fix Docker workflow not pushing on manual trigger
Also fix issue where workflow fails on pull requests when the
user who made the pull request doesn't have the secrets set.
Also allow other workflows to be triggered manually.
Also don't trigger any workflows on pull requests to master, as
there shouldn't be any pull requests against master.
2022-07-19 11:53:56 +02:00
Riku Isokoski
b9f5a0745d
Don't build the firmware when only docs were modified (#1198) 2022-07-05 09:22:29 +03:00
Riku Isokoski
0fabba1c9a Remove extra linebreaks 2022-05-27 17:52:26 +02:00
Riku Isokoski
a2218dd4ad Unzip DFU, so the artifact doesn't need to be unzipped by the user. 2022-05-27 17:52:26 +02:00
Riku Isokoski
619477cbd1 Rename uploaded files with source branch in workflows 2022-05-27 17:52:26 +02:00
Riku Isokoski
cc2d5c39ce Cleanup workflows 2022-05-27 17:52:26 +02:00
Jean-François Milants
1ffca52715 Edit workflow to use the new docker image : infinitime/infinitime-build. 2022-05-26 11:35:25 +02:00
Jean-François Milants
123c801f17 Add comment about the workaround that was needed in the github workflow. 2022-05-26 11:35:25 +02:00
Jean-François Milants
831f93cd92 The main build workflow for GitHub Actions now uses the infinitime-build docker image to build the firmware. This allows to avoid the duplication of the build logic in Docker and Github workflow format.
The Dockerfile has been slightly adapted (remove the USER instructions). Docker images are now published in DockerHub (jf002/infinitime-build).
2022-05-26 11:35:25 +02:00
Yehoshua Pesach Wallach
2ccf88c03c fontgen: lock version at current 2022-05-10 22:20:02 +02:00
Yehoshua Pesach Wallach
b9fbee1007 Added lv_font_conv to workflow main 2022-05-10 22:20:02 +02:00
Jackson
baa5954724 Use CMake universal build command
Rather than using generator-specific build commands (ex. `make` or `ninja`), the CI build now uses `cmake --build` for a more modern, best practices approach.
2021-12-30 21:43:03 +01:00
Jackson
51d2888b52 Switch CI/CD to build using ninja vs. make
By switching the CI/CD workflow to use CMake's `ninja` backend, the build time goes down considerably (~4.5 minutes to ~2) compared to GNU Make
2021-12-30 21:43:03 +01:00
NeroBurner
86bcea9e99
CI: add pintime-recovery to build jobs
The recovery image "it is the last chance before a brick",
as described in https://github.com/InfiniTimeOrg/InfiniTime/issues/742#issuecomment-943665960

So just build it to make sure it doesn't silently break, but don't upload it.
2021-10-18 08:08:43 +02:00
NeroBurner
3cc00771fa
Run CI on master and develop branch
The documentation https://github.com/JF002/InfiniTime/blob/develop/doc/contribute.md#how-to-submit-a-pull-request-
tells us to make pull requests against `develop` branch.
Update the CI to run on those pull requests to have a check if the PR breaks something unintentionally.
2021-09-10 23:42:49 +02:00
mabuch
40afae3833
Github Action - update mcuboot version 2021-08-14 20:46:29 +02:00
mabuch
fbb4e8c6ae
fix Github Action build Firmware 2021-08-14 14:47:00 +02:00
Martin Ashby
bca7ba4eed
Small correction to git URL in documentation files 2021-03-15 23:13:46 +00:00
Miguel Ángel Ordóñez Moya
3c7258ddb8
Update main.yml
When installing Cmake you get Error: The add-path command is deprecated and will be disabled on November 16th...
And the file pinetime-mcuboot-app-dfu.zip was being generated as pinetime-mcuboot-app-dfu.zip.zip
2020-11-14 23:10:05 +01:00
JF
1bb7342cdb Backport Github Actions files from master branch. 2020-09-27 13:10:00 +02:00