Skip to content

Commit

Permalink
Fix typo in build-sysroot.sh, fix name of job
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Dec 27, 2024
1 parent a44ddd5 commit 0fd60fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-swift-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
"raspios-bookworm"
]
swift-target-arch: ["armv6", "armv7"]
name: Build for RaspiOS
name: Build Swift
runs-on: ubuntu-latest
needs: [fetch-sources]
steps:
Expand Down
7 changes: 4 additions & 3 deletions build-sysroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e

SRC_ROOT=$(pwd)

CONTAINER_NAME=swift-armv7-sysroot
DISTRIBUTION_NAME=$1
DISTRIUBTION_VERSION=$2
SYSROOT=$3
Expand Down Expand Up @@ -156,12 +155,14 @@ else
echo "Starting up qemu emulation"
docker run --privileged --rm tonistiigi/binfmt --install all

echo "Building $DISTRIUBTION distribution for sysroot"
CONTAINER_NAME=swift-armhf-sysroot

echo "Building $DISTRIBUTION distribution for sysroot"
docker rm --force $CONTAINER_NAME
docker run \
--platform linux/armhf \
--name $CONTAINER_NAME \
$DISTRIUBTION \
$DISTRIBUTION \
/bin/bash -c "$INSTALL_DEPS_CMD"

echo "Extracting sysroot folders to $SYSROOT"
Expand Down

0 comments on commit 0fd60fc

Please sign in to comment.