Skip to content

Commit

Permalink
Update azure-pipelines.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim committed Apr 13, 2021
1 parent 8d73881 commit 5db4e53
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:
arch: arm
mode: debug
targetTriple: armv7l-tizen-linux-gnueabi
tizen-arm64-release:
arch: arm64
mode: release
targetTriple: aarch64-tizen-linux-gnu
tizen-arm64-profile:
arch: arm64
mode: profile
targetTriple: aarch64-tizen-linux-gnu
tizen-arm64-debug:
arch: arm64
mode: debug
targetTriple: aarch64-tizen-linux-gnu
tizen-x86-debug:
arch: x86
mode: debug
Expand Down Expand Up @@ -63,6 +75,8 @@ jobs:
displayName: Build
workingDirectory: $(buildroot)
failOnStderr: true
env:
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
- bash: |
flutter/tools/gn \
--target-os linux \
Expand All @@ -80,20 +94,22 @@ jobs:
ninja -C output/tizen40/out/linux_$(mode)_$(arch)
displayName: Build for Tizen 4.0
workingDirectory: $(buildroot)
condition: ne(variables['arch'], 'arm64')
failOnStderr: true
- bash: |
OUTDIR=$(Build.StagingDirectory)
cp default/out/linux_$(mode)_$(arch)/libflutter_engine.so $OUTDIR
cp default/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR
cp tizen40/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR/libflutter_tizen40.so
cp tizen40/out/linux_$(mode)_$(arch)/libflutter_engine.so $OUTDIR
if [[ "$(arch)" != "arm64" ]]; then
cp tizen40/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR/libflutter_tizen40.so
fi
displayName: Copy artifacts
workingDirectory: $(buildroot)/output
failOnStderr: true
- publish: $(Build.StagingDirectory)
artifact: $(System.JobName)
- job: release
dependsOn: build
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
pool:
name: Default
demands: agent.os -equals Linux
Expand Down Expand Up @@ -122,12 +138,14 @@ jobs:
cp $(Pipeline.Workspace)/src/third_party/icu/flutter/icudtl.dat common
mv $(Pipeline.Workspace)/tizen-* .
for platform in linux windows darwin; do
for mode in release profile; do
curl -o tmp.zip https://storage.googleapis.com/flutter_infra/flutter/$(upstreamVersion)/android-arm-$mode/$platform-x64.zip 2> /dev/null
unzip tmp.zip -d tizen-arm-$mode/$platform-x64 && rm tmp.zip
for arch in arm arm64; do
for mode in release profile; do
curl -o tmp.zip https://storage.googleapis.com/flutter_infra/flutter/$(upstreamVersion)/android-$arch-$mode/$platform-x64.zip 2> /dev/null
unzip tmp.zip -d tizen-$arch-$mode/$platform-x64 && rm tmp.zip
done
zip -r $(Build.StagingDirectory)/$platform-x64.zip *
rm -r tizen-$arch-*/$platform-x64
done
zip -r $(Build.StagingDirectory)/$platform-x64.zip *
rm -r tizen-arm-*/$platform-x64
done
displayName: Create releases
workingDirectory: $(Build.BinariesDirectory)
Expand Down

0 comments on commit 5db4e53

Please sign in to comment.