Skip to content

Commit

Permalink
ci: publish pre-built binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jan 18, 2020
1 parent ac038d7 commit 64c1cc8
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 5 deletions.
26 changes: 21 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of papaw.
#
# Copyright (c) 2019 Dima Krasner
# Copyright (c) 2019, 2020 Dima Krasner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -29,7 +29,23 @@ variables:
steps:
- checkout: self
submodules: true
- script: docker run --privileged -w /root/papaw -v `pwd`:/root/papaw $(imageName) ./ci/ci.sh xz
displayName: 'LZMA2'
- script: docker run --privileged -w /root/papaw -v `pwd`:/root/papaw $(imageName) ./ci/ci.sh lzma
displayName: 'LAMA1'
- script: docker run --privileged -w /root/papaw -v `pwd`:/root/papaw $(imageName) ./ci/test.sh xz
displayName: 'LZMA2 Test'
- script: docker run --privileged -w /root/papaw -v `pwd`:/root/papaw $(imageName) ./ci/build.sh xz
displayName: 'LZMA2 Build'
- script: docker run --privileged -w /root/papaw -v `pwd`:/root/papaw $(imageName) ./ci/test.sh lzma
displayName: 'LAMA1 Test'
- script: docker run --privileged -w /root/papaw -v `pwd`:/root/papaw $(imageName) ./ci/build.sh lzma
displayName: 'LAMA1 Build'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'dimkr'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagPattern: $(Build.BuildNumber)
tagSource: 'userSpecifiedTag'
tag: $(Build.BuildNumber)
title: $(Build.BuildNumber)
assets: 'artifacts/*'
addChangeLog: false
34 changes: 34 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh -xe

# This file is part of papaw.
#
# Copyright (c) 2020 Dima Krasner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

for i in arm-any32-linux-musleabi armeb-any32-linux-musleabi i386-any32-linux-musl mips-any32-linux-musl mipsel-any32-linux-musl
do
wget -qO- https://github.com/dimkr/toolchains/releases/latest/download/$i.tar.gz | tar -xzf - -C /
meson --cross-file=$i build-$1-$i
ninja -C build-$1-$i
install -D -m 755 build-$1-$i/papaw artifacts/papaw-$1-${i%%-*}
done

install -m 755 build-$1-arm-any32-linux-musleabi/papawify artifacts/papawify-$1
install -m 755 unpapawify artifacts/unpapawify-$1
File renamed without changes.

0 comments on commit 64c1cc8

Please sign in to comment.