mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-21 22:03:45 -07:00
Added s390x support
This commit is contained in:
parent
cfd68ee0c2
commit
19052d68b5
4 changed files with 44 additions and 0 deletions
|
@ -40,6 +40,22 @@ build_armv6hf() {
|
|||
done
|
||||
}
|
||||
|
||||
build_s390x() {
|
||||
# Linux s390x static executable
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install ghc cabal-install
|
||||
cabal update
|
||||
cabal -j1 install --dependencies-only
|
||||
cabal build shellcheck
|
||||
|
||||
path="$(find . -name 'shellcheck' -type f)"
|
||||
[[ -e "$path" ]]
|
||||
for tag in $TAGS
|
||||
do
|
||||
cp "$path" "deploy/shellcheck-$tag.linux-s390x";
|
||||
done
|
||||
}
|
||||
|
||||
build_windows() {
|
||||
# Windows .exe
|
||||
docker run -v "$PWD:/appdata" koalaman/winghc cuib
|
||||
|
|
|
@ -12,9 +12,23 @@ install_deps() {
|
|||
version="2.7.0" # 2.14.1 fails to overwrite duplicates
|
||||
case "$(uname)" in
|
||||
Linux)
|
||||
if [[ $(uname -m) == 's390x' ]]; then
|
||||
sudo apt-get update ;
|
||||
sudo apt-get install -y wget tar git make ruby2.3-dev gcc groff bsdmainutils bsdmainutils locales-all golang-1.10 tmux ;
|
||||
sudo ln -s /usr/bin/tmux ~/bin/tmux
|
||||
gem install bundler:1.16.0
|
||||
export GOPATH=$PWD ;
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export PATH=/usr/lib/go-1.10/bin:$PATH ;
|
||||
mkdir -p $GOPATH/src/github.com/github ;
|
||||
git clone --config transfer.fsckobjects=false --config receive.fsckobjects=false --config fetch.fsckobjects=false https://github.com/github/hub.git $GOPATH/src/github.com/github/hub ;
|
||||
cd $GOPATH/src/github.com/github/hub && git checkout v2.7.0 ;
|
||||
sudo env PATH=$PATH GOPATH=$GOPATH make install ;
|
||||
else
|
||||
sudo apt-get update
|
||||
sudo apt-get install curl
|
||||
curl -L "https://github.com/github/hub/releases/download/v$version/hub-linux-amd64-$version.tgz" | tar xvz --strip-components=1 "hub-linux-amd64-$version/bin/hub"
|
||||
fi
|
||||
;;
|
||||
Darwin)
|
||||
curl -L "https://github.com/github/hub/releases/download/v$version/hub-darwin-amd64-$version.tgz" | tar xvz --strip-components=1 "hub-darwin-amd64-$version/bin/hub"
|
||||
|
|
|
@ -51,6 +51,14 @@ do
|
|||
rm "shellcheck"
|
||||
done
|
||||
|
||||
for file in *.linux-s390x
|
||||
do
|
||||
base="${file%.*}"
|
||||
cp "$file" "shellcheck"
|
||||
tar -cJf "$base.linux.s390x.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
||||
rm "shellcheck"
|
||||
done
|
||||
|
||||
for file in *.darwin-x86_64
|
||||
do
|
||||
base="${file%.*}"
|
||||
|
|
|
@ -28,6 +28,11 @@ jobs:
|
|||
create:
|
||||
name: ws-aarch64
|
||||
paths: deploy
|
||||
- env: BUILD=s390x
|
||||
workspaces:
|
||||
create:
|
||||
name: ws-s390x
|
||||
paths: deploy
|
||||
- env: BUILD=osx
|
||||
os: osx
|
||||
workspaces:
|
||||
|
@ -42,6 +47,7 @@ jobs:
|
|||
- ws-linux
|
||||
- ws-armv6hf
|
||||
- ws-aarch64
|
||||
- ws-s390x
|
||||
- ws-windows
|
||||
script:
|
||||
- ls -la ${CASHER_DIR}/ || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue