-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from PureSwift/feature/embedded-swift
Add Embedded Swift support
- Loading branch information
Showing
34 changed files
with
409 additions
and
179 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,18 @@ name: Swift ARM | |
on: [push] | ||
jobs: | ||
|
||
linux-armv7-crosscompile-build: | ||
name: Crosscompile for Linux Armv7 | ||
runs-on: ubuntu-latest | ||
container: colemancda/swift-armv7:latest-prebuilt | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Swift Version | ||
run: swift --version | ||
- name: Build (Release) | ||
run: | | ||
cd $SRC_ROOT | ||
export SWIFT_PACKAGE_SRCDIR=$GITHUB_WORKSPACE | ||
export SWIFT_PACKAGE_BUILDDIR=$SWIFT_PACKAGE_SRCDIR/.build | ||
$SRC_ROOT/build-swift-package.sh | ||
- name: Archive Build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-armv7-crosscompile-test | ||
path: .build/*/*.xctest | ||
macos: | ||
name: Baremetal Embedded ARM | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install Swift | ||
uses: slashmo/[email protected] | ||
with: | ||
version: swift-DEVELOPMENT-SNAPSHOT-2024-10-30-a | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Swift Version | ||
run: swift --version | ||
- name: Build | ||
run: swift build --triple armv6m-apple-none-macho --configuration release --verbose -Xswiftc -enable-experimental-feature -Xswiftc Embedded -Xswiftc -disable-stack-protector -Xcc -D__MACH__ -Xcc -ffreestanding -Xcc -mcpu=cortex-m0plus -Xcc -mthumb --target Bluetooth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
- name: Install Swift | ||
uses: slashmo/[email protected] | ||
with: | ||
version: 5.8 | ||
version: 6.0 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Swift Version | ||
|
@@ -25,7 +25,7 @@ jobs: | |
name: Linux | ||
strategy: | ||
matrix: | ||
swift: [5.6.3, 5.7.3, 5.8] | ||
swift: [5.9, 6.0] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install Swift | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.