Merge pull request #3330 from realm/add-linux-binary-to-release-artifacts

Add Linux binary to release artifacts
This commit is contained in:
JP Simard
2020-09-03 06:18:16 -07:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@ SwiftLint.pkg
SwiftLintFramework.framework.zip
benchmark_*
portable_swiftlint.zip
swiftlint_linux.zip
osscheck/
docs/
rule_docs/
+8 -1
View File
@@ -107,6 +107,13 @@ portable_zip: installables
cp -f "$(LICENSE_PATH)" "$(TEMPORARY_FOLDER)"
(cd "$(TEMPORARY_FOLDER)"; zip -yr - "swiftlint" "LICENSE") > "./portable_swiftlint.zip"
zip_linux:
$(eval TMP_FOLDER := $(shell mktemp -d))
docker run -v `pwd`:`pwd` -w `pwd` --rm swift:latest swift build -c release
mv .build/release/swiftlint "$(TMP_FOLDER)"
cp -f "$(LICENSE_PATH)" "$(TMP_FOLDER)"
(cd "$(TMP_FOLDER)"; zip -yr - "swiftlint" "LICENSE") > "./swiftlint_linux.zip"
package: installables
pkgbuild \
--identifier "io.realm.swiftlint" \
@@ -119,7 +126,7 @@ archive:
carthage build --no-skip-current --platform mac
carthage archive SwiftLintFramework
release: package archive portable_zip
release: package archive portable_zip zip_linux
docker_test:
docker run -v `pwd`:`pwd` -w `pwd` --name swiftlint --rm norionomura/swift:5.2.4 swift test --parallel