-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e29ff1d
commit ae2fc2a
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Buildroot | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
buildroot-armv7-build: | ||
name: Build Armv7 | ||
runs-on: ubuntu-20.04 | ||
container: colemancda/swift-buildroot:amd64-prebuilt-armv7 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Swift Version | ||
run: swift --version | ||
- name: Build | ||
run: | | ||
cd /usr/src/buildroot-external | ||
export SWIFT_ARCH=armv7 | ||
export SWIFT_PACKAGE_PATH=$GITHUB_WORKSPACE | ||
export SWIFTPM_DISABLE_PLUGINS=1 | ||
swift --version | ||
./build-swift-package.sh | ||
- name: Archive Build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: swiftpm-build-armv7 | ||
path: .build/*/*.xctest |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Swift ARM | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
linux-swift-armv7-debian-build: | ||
name: Build for Debian Armv7 | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
swift: [5.6.1, 5.7] | ||
container: colemancda/swift-armv7:${{ matrix.swift }}-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 unit tests | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: swift-${{ matrix.swift }}-debian-armv7-xctest | ||
path: .build/*/*.xctest | ||
- name: Archive Lock daemon | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: swift-${{ matrix.swift }}-debian-armv7-lockd | ||
path: .build/*/lockd | ||
|
||
linux-swift-arm64-build: | ||
name: Build for Linux Arm64 | ||
runs-on: [Linux, ARM64] | ||
strategy: | ||
matrix: | ||
swift: [5.6.3-focal, 5.7-jammy] | ||
container: swift:${{ matrix.swift }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Swift Version | ||
run: swift --version | ||
- name: Build (Debug) | ||
run: swift build -c debug | ||
- name: Build (Release) | ||
run: swift build -c release | ||
|
||
linux-swift-arm64-test: | ||
name: Build for Linux Arm64 | ||
runs-on: [Linux, ARM64] | ||
strategy: | ||
matrix: | ||
swift: [5.6.3-focal, 5.7-jammy] | ||
container: swift:${{ matrix.swift }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Swift Version | ||
run: swift --version | ||
- name: Test (Debug) | ||
run: swift test --configuration debug | ||
- name: Test (Release) | ||
run: swift test --configuration release -Xswiftc -enable-testing |