Skip to content

Commit ed8a7df

Browse files
author
Aaron Züger
committed
merge upstream changes
2 parents 49455f4 + 728da0f commit ed8a7df

204 files changed

Lines changed: 3385 additions & 3026 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/cpp
3+
{
4+
"build": {
5+
"dockerfile": "docker/Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"settings": {
10+
// Set *default* container specific settings.json values on container create.
11+
"terminal.integrated.profiles.linux": {
12+
"bash": {
13+
"path": "/bin/bash"
14+
}
15+
},
16+
"terminal.integrated.defaultProfile.linux": "bash",
17+
"editor.formatOnSave": true,
18+
// FIXME: This and the Dockerfile might get out of sync
19+
"clang-format.executable": "clang-format-14"
20+
},
21+
// Add the IDs of extensions you want installed when the container is created.
22+
"extensions": [
23+
"ms-vscode.cpptools",
24+
"ms-vscode.cmake-tools",
25+
"marus25.cortex-debug",
26+
"notskm.clang-tidy",
27+
"mjohns.clang-format"
28+
]
29+
}
30+
},
31+
"remoteUser": "infinitime"
32+
}

.devcontainer/Dockerfile

Lines changed: 0 additions & 66 deletions
This file was deleted.

.devcontainer/build.sh

Lines changed: 0 additions & 87 deletions
This file was deleted.

.devcontainer/build_app.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

.devcontainer/create_build_openocd.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

.devcontainer/make_build_dir.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitattributes

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Set the default behavior, in case people don't have core.autocrlf set.
2-
* text=auto
2+
# Prevent build errors on non lf systems (like Windows), we need files with lf as newlines.
3+
* text=auto eol=lf
34

45
# Explicitly declare text files you want to always be normalized and converted
5-
# to native line endings on checkout.
6+
# to lf line endings on checkout.
67
*.c text
78
*.cpp text
89
*.h text

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: tests/test-format.sh
3030

3131
- name: Upload patches
32-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
3333
if: failure()
3434
with:
3535
name: Patches

.github/workflows/main.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
text_size: ${{ steps.output-sizes.outputs.text_size }}
2323
data_size: ${{ steps.output-sizes.outputs.data_size }}
2424
bss_size: ${{ steps.output-sizes.outputs.bss_size }}
25+
firmware_artifact: ${{ steps.upload-firmware.outputs.artifact-id }}
26+
resources_artifact: ${{ steps.upload-resources.outputs.artifact-id }}
2527
env:
2628
# InfiniTime sources are downloaded to the current directory.
2729
# Override SOURCES_DIR in build.sh
@@ -46,20 +48,32 @@ jobs:
4648
# Unzip the package because Upload Artifact will zip up the files
4749
- name: Unzip DFU package
4850
run: unzip ./build/output/pinetime-mcuboot-app-dfu-*.zip -d ./build/output/pinetime-mcuboot-app-dfu
51+
- name: Set ref_name, but replace slashes with dashes.
52+
shell: bash
53+
env:
54+
ref_name: ${{ github.head_ref || github.ref_name }}
55+
run: echo "REF_NAME=${ref_name//\//-}" >> $GITHUB_ENV
4956
- name: Upload DFU artifacts
50-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5158
with:
52-
name: InfiniTime DFU ${{ github.head_ref }}
59+
name: InfiniTime DFU ${{ env.REF_NAME }}
5360
path: ./build/output/pinetime-mcuboot-app-dfu/*
5461
- name: Upload MCUBoot image artifacts
55-
uses: actions/upload-artifact@v3
62+
uses: actions/upload-artifact@v4
5663
with:
57-
name: InfiniTime MCUBoot image ${{ github.head_ref }}
64+
name: InfiniTime MCUBoot image ${{ env.REF_NAME }}
5865
path: ./build/output/pinetime-mcuboot-app-image-*.bin
66+
- name: Upload standalone ELF artifacts
67+
uses: actions/upload-artifact@v4
68+
id: upload-firmware
69+
with:
70+
name: InfiniTime image ${{ env.REF_NAME }}
71+
path: ./build/output/src/pinetime-app-*.out
5972
- name: Upload resources artifacts
60-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
74+
id: upload-resources
6175
with:
62-
name: InfiniTime resources ${{ github.head_ref }}
76+
name: InfiniTime resources ${{ env.REF_NAME }}
6377
path: ./build/output/infinitime-resources-*.zip
6478

6579
build-simulator:
@@ -98,9 +112,9 @@ jobs:
98112
cmake --build build_lv_sim
99113
100114
- name: Upload simulator executable
101-
uses: actions/upload-artifact@v3
115+
uses: actions/upload-artifact@v4
102116
with:
103-
name: infinisim-${{ github.head_ref }}
117+
name: infinisim-${{ env.REF_NAME }}
104118
path: build_lv_sim/infinisim
105119

106120
get-base-ref-size:
@@ -195,10 +209,12 @@ jobs:
195209
| text | ${{ needs.build-firmware.outputs.text_size }}B | ${{ steps.output-sizes-diff.outputs.text_diff }}B |
196210
| data | ${{ needs.build-firmware.outputs.data_size }}B | ${{ steps.output-sizes-diff.outputs.data_diff }}B |
197211
| bss | ${{ needs.build-firmware.outputs.bss_size }}B | ${{ steps.output-sizes-diff.outputs.bss_diff }}B |
212+
213+
[Run in InfiniEmu](https://infiniemu.pipe01.net/?firmware=artifact://${{ github.repository }}/${{ needs.build-firmware.outputs.firmware_artifact }}&resources=artifact://${{ github.repository }}/${{ needs.build-firmware.outputs.resources_artifact }})
198214
EOF
199215
200216
- name: Upload comment
201-
uses: actions/upload-artifact@v3
217+
uses: actions/upload-artifact@v4
202218
with:
203219
name: comment
204220
path: comment

0 commit comments

Comments
 (0)