Skip to content

Updated unit tests

Updated unit tests #26

Workflow file for this run

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