Skip to content

Commit d8d66ad

Browse files
author
sw-dev
committed
ci
1 parent 0f7a4f8 commit d8d66ad

File tree

134 files changed

+6
-89157
lines changed

Some content is hidden

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

134 files changed

+6
-89157
lines changed

.github/workflows/build-embedded-swift-examples.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ on:
2222
jobs:
2323
build:
2424
runs-on: macos-latest
25-
2625
steps:
2726
- uses: actions/checkout@v4
27+
with:
28+
repository: apple/swift-embedded-examples
2829
- name: Download development snapshot toolchain
2930
run: |
30-
for (( i=0; i < 30; i++ ))
31+
for (( i=0; i < 90; i++ ))
3132
do
3233
# try to find latest toolchain
3334
TOOLCHAIN_DATE=$(date -v-${i}d +"%Y-%m-%d")
3435
TOOLCHAIN_FILE="swift-DEVELOPMENT-SNAPSHOT-$TOOLCHAIN_DATE-a-osx.pkg"
35-
TOOLCHAIN_URL="https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2024-09-11-a/$TOOLCHAIN_FILE"
36+
TOOLCHAIN_URL="https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-$TOOLCHAIN_DATE-a/$TOOLCHAIN_FILE"
3637
if wget --spider $TOOLCHAIN_URL 2>/dev/null; then
3738
break # toolchain found
3839
fi

CODEOWNERS

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

CONTRIBUTING.md

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

README.md

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,3 @@
1-
# Embedded Swift Example Projects
1+
# Embedded Swift CI
22

3-
This repository is a set of demonstration projects of **Embedded Swift**. Embedded Swift is a compilation and language mode that enables development of baremetal, embedded and standalone software in Swift. To learn more, see:
4-
5-
- [Blog post introducing this repository](https://www.swift.org/blog/embedded-swift-examples/)
6-
- [Swift forums thread about this repository](https://forums.swift.org/t/embedded-swift-example-projects-for-arm-and-risc-v-microcontrollers/71066)
7-
- [Discussions about Embedded Swift on the Swift forums](https://forums.swift.org/t/embedded-swift/67057)
8-
- [Embedded Swift Vision Document](https://github.com/apple/swift-evolution/blob/main/visions/embedded-swift.md)
9-
- [Documentation for Embedded Swift](https://github.com/apple/swift/tree/main/docs/EmbeddedSwift)
10-
11-
> [!WARNING]
12-
> Embedded Swift is experimental. Some information on this page might be out of date with latest development.
13-
14-
## Building the examples
15-
16-
Each example in this repository contains build and deployment instructions, however there are a couple common steps needed for many of the examples included below:
17-
18-
1. Install the latest downloadable 'main' [Development Snapshot](https://www.swift.org/install/macos/#development-snapshots) from swift.org to use Embedded Swift. Public releases of Swift do not yet support Embedded Swift.
19-
20-
You can follow the [tutorial here](https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/setup-macos/) for instructions on installing and using nighly Swift toolchains.
21-
22-
2. Install the Python3 dependencies listed in `requirements.txt`.
23-
24-
```console
25-
$ cd swift-embedded-examples
26-
$ python3 -m venv .venv
27-
$ source .venv/bin/activate
28-
$ python3 -m pip install -r Tools/requirements.txt
29-
```
30-
31-
## Catalog of Examples
32-
33-
| Name | Platform | SDK | Description | Photo |
34-
| ---- | -------- | --- | ----------- | ----- |
35-
| [stm32-blink](./stm32-blink) | STM32F746G-DISCO | None | Blink an LED repeatedly. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/739e98fd-a438-4a64-a7aa-9dddee25034b"> |
36-
| [stm32-lcd-logo](./stm32-lcd-logo) | STM32F746G-DISCO | None | Animate the Swift Logo on the built-in LCD. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/9e117d81-e808-493e-a20c-7284ea630f37"> |
37-
| [stm32-neopixel](./stm32-neopixel) | STM32F746G-DISCO | None | Control NeoPixel LEDs using SPI. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/9c5d8f74-f8aa-4632-831e-212a3e35e75a"> |
38-
| [stm32-uart-echo](./stm32-uart-echo) | STM32F746G-DISCO | None | Echo user input using UART. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/97d3c465-9a07-4b86-9654-0c2aaaa43b3d">|
39-
| [pico-blink](./pico-blink) | Raspberry Pi Pico | None | Blink an LED repeatedly. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/f2c45c18-f9a4-48b4-a941-1298ecc942cb"> |
40-
| [pico-blink-sdk](./pico-blink-sdk) | Raspberry Pi Pico, Pico 2 | Pico SDK | Blink an LED repeatedly with Swift & the Pico SDK. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/f2c45c18-f9a4-48b4-a941-1298ecc942cb"> |
41-
| [pico-w-blink-sdk](./pico-w-blink-sdk) | Raspberry Pi Pico W | Pico SDK | Blink an LED to signal 'SOS' in Morse code repeatedly with Swift & the Pico SDK. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/26223064/a4949a2e-1887-4325-8f5f-a681963c93d7"> |
42-
| [pico2-neopixel](./pico2-neopixel) | Raspberry Pi Pico 2 | None | Control Neopixel LEDs using the RP2350 PIO. | <img width="300" src="pico2-neopixel/assets/images/example.jpg"> |
43-
| [nrfx-blink-sdk](./nrfx-blink-sdk) | nRF52840-DK | Zephyr SDK | Blink an LED repeatedly with Swift & Zephyr. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/ae3ff153-dd33-4460-8a08-4eac442bf7b0"> |
44-
| [esp32-led-strip-sdk](./esp32-led-strip-sdk) | ESP32-C6-DevKitC-1 | ESP-IDF SDK | Control NeoPixel LEDs with Swift & the ESP-IDF. | <img width="300" src="https://github.com/apple/swift-embedded-examples/assets/1186214/15f8a3e0-953e-426d-ad2d-3902baf859be"> |
45-
| [esp32-led-blink-sdk](./esp32-led-blink-sdk) | ESP32-C6-Bug | ESP-IDF SDK | Blink an LED repeatedly with Swift & the ESP-IDF. | <img width="300" src="esp32-led-blink-sdk/assets/images/ledon.jpg"> |
46-
47-
Note that the SDK integration examples (Pico SDK, Zephyr SDK, etc.) are not recommendations or endorsement, the same is true for build system choice (Make, CMake, SwiftPM, shell scripts). Embedded Swift aims to be versatile and to allow for integration into more existing SDKs and build systems, and the example projects are merely showing the possibilities.
48-
49-
## Community Examples
50-
51-
> [!WARNING]
52-
> Community projects linked here are not officially supported by our team. They may not always be compatible with the latest nightly Swift toolchain builds.
53-
54-
<!-- Please keep this list sorted by "Board" then "Name" -->
55-
56-
| Name | Platform | Description |
57-
| ---- | -------- | ----------- |
58-
| [swift-matter-examples](https://github.com/apple/swift-matter-examples) | ESP32 | An Embedded Swift Matter application running on ESP32-C6. |
59-
| [swift-flipperzero-hello](https://github.com/Sameesunkaria/swift-flipperzero-hello) | Flipper Zero | A demonstration of running Swift apps on the Flipper Zero. |
60-
| [swift-picosystem-example](https://github.com/jerrodputman/swift-picosystem-example) | PicoSystem | An Embedded Swift demo running on the Pimoroni PicoSystem |
61-
| [PlaydateKit](https://github.com/finnvoor/PlaydateKit) | Playdate | A full featured framework for building Playdate games using Embedded Swift. |
62-
| [swift-playdate-examples](https://github.com/apple/swift-playdate-examples) | Playdate | An Embedded Swift game running on Playdate by Panic. |
63-
| [swift-for-wasm-examples](https://github.com/apple/swift-for-wasm-examples) | Web | A "Swift Audio Workstation" example built with Swift for WebAssembly running in the browser using Embedded Swift. |
64-
65-
Please note that the presence of community repositories and devices in this list does not constitute a recommendation or endorsement. If there's a project you'd like to see included here, please [submit an issue](https://github.com/apple/swift-embedded-examples/issues/new) with the details.
66-
67-
## Contributing to this repository
68-
69-
This repository contains code that is not continuously developed, instead it's presented "as is" for educational and demonstrational purposes. Making major improvements to existing examples is discouraged, but additions of new examples is welcome.
70-
71-
### Code of Conduct
72-
73-
Like all Swift.org projects, we would like these Embedded Swift example projects to foster a diverse and friendly community. We expect contributors to adhere to the [Swift.org Code of Conduct](https://swift.org/code-of-conduct/).
74-
75-
### Contact information
76-
77-
The current code owners of this repository are Kuba Mracek ([@kubamracek](https://github.com/kubamracek)) and Rauhul Varma ([@rauhul](https://github.com/rauhul)). You can contact them on the Swift forums via the handles [@kubamracek](https://forums.swift.org/u/kubamracek/summary) and [@rauhul](https://forums.swift.org/u/rauhul/summary).
78-
79-
In case of moderation issues, you can also directly contact a member of the [Swift Core Team](https://swift.org/community/#community-structure).
3+
Github action to automatically build https://github.com/apple/swift-embedded-examples

esp32-led-blink-sdk/CMakeLists.txt

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

esp32-led-blink-sdk/README.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
-208 KB
Binary file not shown.
-205 KB
Binary file not shown.

esp32-led-blink-sdk/main/BridgingHeader.h

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

esp32-led-blink-sdk/main/CMakeLists.txt

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

esp32-led-blink-sdk/main/Led.swift

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

esp32-led-blink-sdk/main/Main.swift

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

esp32-led-blink-sdk/main/idf_component.yml

Whitespace-only changes.

esp32-led-blink-sdk/main/linker.lf

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

esp32-led-strip-sdk/CMakeLists.txt

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

esp32-led-strip-sdk/README.md

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

0 commit comments

Comments
 (0)