-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from MillerTechnologyPeru/feature/swift-hello-…
…test Fix `swift-hello` and PPC64 support
- Loading branch information
Showing
13 changed files
with
62 additions
and
59 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
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
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,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Configurable | ||
SWIFT_BUILDROOT="${SWIFT_BUILDROOT:=$(pwd)}" | ||
source $SWIFT_BUILDROOT/.devcontainer/build-scripts/swift-define | ||
|
||
# Build | ||
cd $WORKING_DIR | ||
echo "BR2_PACKAGE_SWIFT_HELLO=y" >> $BUILDROOT_CONFIG | ||
make $BUILDROOT_OPTIONS swift-hello-build | ||
make $BUILDROOT_OPTIONS | ||
file $BUILDROOT_TARGET/usr/bin/swift-hello |
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,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Configurable | ||
SWIFT_BUILDROOT="${SWIFT_BUILDROOT:=$(pwd)}" | ||
source $SWIFT_BUILDROOT/.devcontainer/build-scripts/swift-define | ||
|
||
# Build | ||
cd $WORKING_DIR | ||
make $BUILDROOT_OPTIONS swift-hello-build | ||
QEMU_TEST="/usr/bin/$QEMU_BIN -L $BUILDROOT_TARGET $BUILDROOT_TARGET/usr/bin/swift-hello" | ||
echo "$QEMU_TEST" | ||
$QEMU_TEST |
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
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 |
---|---|---|
|
@@ -18,7 +18,17 @@ jobs: | |
$SWIFT_BUILDROOT/.devcontainer/build-scripts/download-buildroot.sh | ||
$SWIFT_BUILDROOT/.devcontainer/build-scripts/build.sh | ||
- name: Archive Build artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4.5.0 | ||
with: | ||
name: build-${{ matrix.arch }} | ||
path: ./output/${{ matrix.arch }}/images | ||
path: /workspaces/buildroot-swift/output/${{ matrix.arch }}/images/rootfs.tar | ||
- name: Build Test | ||
run: | | ||
export SWIFT_BUILDROOT=$GITHUB_WORKSPACE | ||
export SWIFT_TARGET_ARCH=${{ matrix.arch }} | ||
$SWIFT_BUILDROOT/.devcontainer/build-scripts/build-test.sh | ||
- name: Upload test binary | ||
uses: actions/[email protected] | ||
with: | ||
name: swift-hello-${{ matrix.arch }} | ||
path: /workspaces/buildroot-swift/output/${{ matrix.arch }}/target/usr/bin/swift-hello |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Architecture | ||
BR2_powerpc64=y | ||
BR2_powerpc64le=y | ||
BR2_powerpc_power7=y | ||
|
||
# GNU C Toolchain | ||
|
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
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
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
47 changes: 0 additions & 47 deletions
47
package/swift-hello/src/Tests/swift-helloTests/swift_helloTests.swift
This file was deleted.
Oops, something went wrong.
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
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