Reduce the minimal deployment target for OSX
This commit is contained in:
parent
eafae0f6c0
commit
3fc205998a
12
.travis.yml
12
.travis.yml
|
@ -16,10 +16,10 @@ script: "./.travis.sh"
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: GitHub Release
|
- stage: GitHub Release
|
||||||
if: tag IS present
|
#if: tag IS present
|
||||||
d: ldc
|
d: ldc-1.8.0
|
||||||
os: linux
|
os: linux
|
||||||
script: echo "Deploying to GitHub releases ..." && make release
|
script: echo "Deploying to GitHub releases ..." && ./release.sh
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GH_REPO_TOKEN
|
api_key: $GH_REPO_TOKEN
|
||||||
|
@ -30,10 +30,10 @@ jobs:
|
||||||
repo: dlang-community/D-Scanner
|
repo: dlang-community/D-Scanner
|
||||||
tags: true
|
tags: true
|
||||||
- stage: GitHub Release
|
- stage: GitHub Release
|
||||||
if: tag IS present
|
#if: tag IS present
|
||||||
d: ldc
|
d: ldc-1.8.0
|
||||||
os: osx
|
os: osx
|
||||||
script: echo "Deploying to GitHub releases ..." && make release
|
script: echo "Deploying to GitHub releases ..." && ./release.sh
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GH_REPO_TOKEN
|
api_key: $GH_REPO_TOKEN
|
||||||
|
|
23
makefile
23
makefile
|
@ -76,26 +76,5 @@ report: all
|
||||||
dscanner --report src > src/dscanner-report.json
|
dscanner --report src > src/dscanner-report.json
|
||||||
sonar-runner
|
sonar-runner
|
||||||
|
|
||||||
.ONESHELL:
|
|
||||||
release:
|
release:
|
||||||
@set -eux -o pipefail
|
./release.sh
|
||||||
VERSION=$$(git describe --abbrev=0 --tags)
|
|
||||||
ARCH="$${ARCH:-64}"
|
|
||||||
unameOut="$$(uname -s)"
|
|
||||||
case "$$unameOut" in
|
|
||||||
Linux*) OS=linux; ;;
|
|
||||||
Darwin*) OS=osx; ;;
|
|
||||||
*) echo "Unknown OS: $$unameOut"; exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
case "$$ARCH" in
|
|
||||||
64) ARCH_SUFFIX="x86_64";;
|
|
||||||
32) ARCH_SUFFIX="x86";;
|
|
||||||
*) echo "Unknown ARCH: $$ARCH"; exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
archiveName="dscanner-$$VERSION-$$OS-$$ARCH_SUFFIX.tar.gz"
|
|
||||||
|
|
||||||
echo "Building $$archiveName"
|
|
||||||
${MAKE} ldcbuild LDC_FLAGS="-flto=full"
|
|
||||||
tar cvfz "bin/$$archiveName" -C bin dscanner
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eux -o pipefail
|
||||||
|
VERSION=$(git describe --abbrev=0 --tags)
|
||||||
|
ARCH="${ARCH:-64}"
|
||||||
|
LDC_FLAGS=()
|
||||||
|
unameOut="$(uname -s)"
|
||||||
|
case "$unameOut" in
|
||||||
|
Linux*) OS=linux; LDC_FLAGS=("-flto=full" "-linker=gold" "-static") ;;
|
||||||
|
Darwin*) OS=osx; LDC_FLAGS+=("-L-macosx_version_min" "-L10.7" "-L-lcrt1.o"); ;;
|
||||||
|
*) echo "Unknown OS: $unameOut"; exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
case "$ARCH" in
|
||||||
|
64) ARCH_SUFFIX="x86_64";;
|
||||||
|
32) ARCH_SUFFIX="x86";;
|
||||||
|
*) echo "Unknown ARCH: $ARCH"; exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
archiveName="dscanner-$VERSION-$OS-$ARCH_SUFFIX.tar.gz"
|
||||||
|
|
||||||
|
echo "Building $archiveName"
|
||||||
|
${MAKE:-make} ldcbuild LDC_FLAGS="${LDC_FLAGS[*]}"
|
||||||
|
tar cvfz "bin/$archiveName" -C bin dscanner
|
Loading…
Reference in New Issue