-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (39 loc) · 1.41 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
42
43
name: Swift ARM
on: [push]
jobs:
linux-swift-5_6-armv7-debian-build:
name: Build Debian Armv7 (Swift 5.6.1)
runs-on: ubuntu-20.04
container: colemancda/swift-armv7:5.6.1-prebuilt
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Swift Version
run: swift --version
- name: Build
run: |
cd /usr/src/swift-armv7
export SWIFT_PACKAGE_SRCDIR=$GITHUB_WORKSPACE
export SWIFT_PACKAGE_BUILDDIR=$SWIFT_PACKAGE_SRCDIR/.build
mkdir -p $SWIFT_PACKAGE_BUILDDIR
mkdir -p /usr/src/swift-armv7/build/
./generate-swiftpm-toolchain.sh
./build-swift-package.sh
- name: Archive Build artifacts
uses: actions/upload-artifact@v3
with:
name: swiftpm-5_6-build-debian-armv7
path: .build/*/*.xctest
linux-swift-5_6-armv7-debian-test:
name: Test Armv7
runs-on: [self-hosted, linux, ARM64, debian-unstable]
needs: linux-swift-5_6-armv7-debian-build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: swiftpm-5_6-build-debian-armv7
- name: Test
run: |
chmod +x ./release/BluetoothLinuxPackageTests.xctest
schroot -c bullseye-armv7 ./release/BluetoothLinuxPackageTests.xctest