-
-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (39 loc) · 2.09 KB
/
swift-arm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Swift ARM
on: [push]
jobs:
armv6m-apple-none-macho:
name: Baremetal Embedded ARM
runs-on: ubuntu-latest
container: swiftlang/swift:nightly-jammy
steps:
- name: Install dependencies
run: apt update -y; apt install libtool-bin -y;
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build Bluetooth
run: SWIFTPM_ENABLE_MACROS=0 SWIFTPM_ENABLE_PLUGINS=0 SWIFTPM_BLUETOOTH_METADATA=0 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
- name: Build BluetoothGAP
run: SWIFTPM_ENABLE_MACROS=0 SWIFTPM_ENABLE_PLUGINS=0 SWIFTPM_BLUETOOTH_METADATA=0 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 BluetoothGAP
armv7-bookworm:
name: Armv7 Debian Bookworm
runs-on: ubuntu-latest
container: swift:6.0.3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install SDK
run: apt update -y; apt install wget;
| wget https://github.com/xtremekforever/swift-armv7/releases/download/6.0.3/swift-6.0.3-RELEASE-debian-bookworm-armv7-sdk.tar.gz
| tar -xvf swift-6.0.3-RELEASE-debian-bookworm-armv7-sdk.tar.gz
| mv swift-6.0.3-RELEASE-debian-bookworm-armv7 /opt/swift-6.0.3-RELEASE-debian-bookworm-armv7
- name: Swift Version
run: swift --version
- name: Build
run: swift build --build-tests --destination /opt/swift-6.0.3-RELEASE-debian-bookworm-armv7/debian-bookworm.json
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "armv7-bookworm"
path: .build/debug/BluetoothPackageTests.xctest