@@ -240,8 +240,7 @@ jobs:
240
240
"extra-cpp-flags": [ "-lstdc++" ],
241
241
"extra-swiftc-flags": [
242
242
"-resource-dir", "${SDK_PATH}/usr/lib/swift",
243
- "-tools-directory", "${NDK_PREBUILT}/bin",
244
- "-L", "${SDK_PATH}/usr/lib"
243
+ "-tools-directory", "${NDK_PREBUILT}/bin"
245
244
]
246
245
}
247
246
EOF
@@ -261,10 +260,10 @@ jobs:
261
260
repository : apple/swift-argument-parser
262
261
path : swift-argument-parser
263
262
- name : Build Swift Argument Parser package
264
- # macOS error: ld.lld: error: --defsym:1: symbol not found: changelog_authors_main
265
- if : ${{ startsWith(matrix.os, 'ubuntu') }}
266
263
run : |
267
264
cd swift-argument-parser
265
+ # perl -pi -e 's%macOS%Windows%' Package.swift
266
+ rm Examples/count-lines/CountLines.swift Tools/changelog-authors/*.swift
268
267
${TOOLCHAIN}/bin/swift build --build-tests --destination ${ARCH_JSON} -Xlinker -rpath -Xlinker \$ORIGIN/lib/swift/android
269
268
- name : Get Swift crypto package
270
269
uses : actions/checkout@v4
@@ -413,9 +412,8 @@ jobs:
413
412
mkdir -p pack/lib/swift/android
414
413
TARGET="x86_64-unknown-linux-android$ANDROID_API_LEVEL"
415
414
416
- if ${{ startsWith(matrix.os, 'ubuntu') }}; then
417
- cp swift-argument-parser/.build/$TARGET/debug/{generate-manual,math,repeat,roll,swift-argument-parserPackageTests.xctest} pack
418
- echo 'adb shell /data/local/tmp/pack/swift-argument-parserPackageTests.xctest' >> ~/test-toolchain.sh
415
+ cp swift-argument-parser/.build/$TARGET/debug/{generate-manual,math,repeat,roll,swift-argument-parserPackageTests.xctest} pack
416
+ echo 'adb shell /data/local/tmp/pack/swift-argument-parserPackageTests.xctest' >> ~/test-toolchain.sh
419
417
420
418
wget -q https://raw.githubusercontent.com/termux/termux-elf-cleaner/v2.1.1/elf-cleaner.cpp
421
419
wget -q https://raw.githubusercontent.com/termux/termux-elf-cleaner/v2.1.1/elf.h
@@ -424,7 +422,6 @@ jobs:
424
422
clang -c arghandling.c
425
423
clang -o elf-cleaner arghandling.o elf-cleaner.cpp -DCOPYRIGHT=\"foo\" -DPACKAGE_NAME=\"termux-elf-cleaner\" -DPACKAGE_VERSION=\"2.2.1\"
426
424
./elf-cleaner --api-level $ANDROID_API_LEVEL pack/{generate-manual,math,repeat,roll} || true
427
- fi
428
425
429
426
cp swift-crypto/.build/$TARGET/debug/swift-cryptoPackageTests.xctest pack
430
427
echo 'adb shell /data/local/tmp/pack/swift-cryptoPackageTests.xctest' >> ~/test-toolchain.sh
0 commit comments