|
| 1 | +name: Swift ARM |
| 2 | + |
| 3 | +on: [push] |
| 4 | + |
| 5 | +jobs: |
| 6 | + |
| 7 | + linux-swift-5_6-armv7-debian-build: |
| 8 | + name: Build Debian Armv7 (Swift 5.6.1) |
| 9 | + runs-on: ubuntu-20.04 |
| 10 | + container: colemancda/swift-armv7:5.6.1-prebuilt |
| 11 | + steps: |
| 12 | + - name: Checkout |
| 13 | + uses: actions/checkout@v3 |
| 14 | + - name: Swift Version |
| 15 | + run: swift --version |
| 16 | + - name: Build |
| 17 | + run: | |
| 18 | + cd /usr/src/swift-armv7 |
| 19 | + export SWIFT_PACKAGE_SRCDIR=$GITHUB_WORKSPACE |
| 20 | + export SWIFT_PACKAGE_BUILDDIR=$SWIFT_PACKAGE_SRCDIR/.build |
| 21 | + mkdir -p $SWIFT_PACKAGE_BUILDDIR |
| 22 | + mkdir -p /usr/src/swift-armv7/build/ |
| 23 | + ./generate-swiftpm-toolchain.sh |
| 24 | + ./build-swift-package.sh |
| 25 | + - name: Archive Build artifacts |
| 26 | + uses: actions/upload-artifact@v3 |
| 27 | + with: |
| 28 | + name: swiftpm-5_6-build-debian-armv7 |
| 29 | + path: .build/*/*.xctest |
| 30 | + |
| 31 | + linux-swift-5_6-armv7-debian-armv7-test: |
| 32 | + name: Test Armv7 |
| 33 | + runs-on: [self-hosted, linux, ARM64, debian-unstable] |
| 34 | + needs: linux-swift-5_6-armv7-debian-build |
| 35 | + steps: |
| 36 | + - name: Download artifacts |
| 37 | + uses: actions/download-artifact@v3 |
| 38 | + with: |
| 39 | + name: swiftpm-5_6-build-debian-armv7 |
| 40 | + - name: Test |
| 41 | + run: | |
| 42 | + chmod +x ./release/NetlinkPackageTests.xctest |
| 43 | + schroot -c bullseye-armv7 ./release/NetlinkPackageTests.xctest |
| 44 | + |
| 45 | + linux-swift-5_5-armv7-debian-build: |
| 46 | + name: Build Debian Armv7 (Swift 5.5.3) |
| 47 | + runs-on: ubuntu-20.04 |
| 48 | + container: colemancda/swift-armv7:5.5.3-amd64-prebuilt |
| 49 | + steps: |
| 50 | + - name: Checkout |
| 51 | + uses: actions/checkout@v3 |
| 52 | + - name: Swift Version |
| 53 | + run: swift --version |
| 54 | + - name: Build |
| 55 | + run: | |
| 56 | + cd /usr/src/swift-armv7 |
| 57 | + export SWIFT_PACKAGE_SRCDIR=$GITHUB_WORKSPACE |
| 58 | + export SWIFT_PACKAGE_BUILDDIR=$SWIFT_PACKAGE_SRCDIR/.build |
| 59 | + mkdir -p $SWIFT_PACKAGE_BUILDDIR |
| 60 | + mkdir -p /usr/src/swift-armv7/build/ |
| 61 | + ./generate-swiftpm-toolchain.sh |
| 62 | + ./build-swift-package.sh |
| 63 | + - name: Archive Build artifacts |
| 64 | + uses: actions/upload-artifact@v3 |
| 65 | + with: |
| 66 | + name: swiftpm-5_5-build-debian-armv7 |
| 67 | + path: .build/*/*.xctest |
0 commit comments