mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
tweak nightly build
I want to avoid creating/updating so many git tags for nightly builds, so let's try restructuring things a bit.
This commit is contained in:
parent
086e9e9b64
commit
2ad7f7084d
@ -8,7 +8,7 @@ trigger:
|
||||
exclude: ['nightly*']
|
||||
|
||||
schedules:
|
||||
- cron: '10 0 * * *'
|
||||
- cron: '*/10 * * * *'
|
||||
displayName: "scheduled build"
|
||||
branches:
|
||||
include: ['master']
|
||||
@ -171,13 +171,13 @@ jobs:
|
||||
gitHubConnection: wez
|
||||
repositoryName: wez/wezterm
|
||||
action: edit
|
||||
target: $(build.sourceVersion)
|
||||
target: c53ca64c33d1658602b9a3aaa412eca9c6544294
|
||||
tagSource: manual
|
||||
tag: nightly-$(wezterm.tagname)
|
||||
tag: nightly
|
||||
assets: |
|
||||
$(Build.SourcesDirectory)/*.zip
|
||||
$(Build.SourcesDirectory)/*.deb
|
||||
title: "Nightly Pre-Release: $(wezterm.tagname)"
|
||||
title: "Nightly Builds"
|
||||
assetUploadMode: replace
|
||||
addChangeLog: false
|
||||
isPreRelease: true
|
||||
|
25
ci/deploy.sh
25
ci/deploy.sh
@ -28,18 +28,28 @@ HERE=$(pwd)
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
zipdir=WezTerm-macos-$DEPLOY_ENV_TYPE-$TAG_NAME
|
||||
rm -rf $zipdir $zipdir.zip
|
||||
if [[ "$BUILD_REASON" == "Schedule" ]] ; then
|
||||
zipname=WezTerm-macos-nightly.zip
|
||||
else
|
||||
zipname=$zipdir.zip
|
||||
fi
|
||||
rm -rf $zipdir $zipname
|
||||
mkdir $zipdir
|
||||
cp -r assets/macos/WezTerm.app $zipdir/
|
||||
cp target/release/wezterm $zipdir/WezTerm.app
|
||||
zip -r $zipdir.zip $zipdir
|
||||
zip -r $zipname $zipdir
|
||||
;;
|
||||
msys)
|
||||
zipdir=WezTerm-windows-$DEPLOY_ENV_TYPE-$TAG_NAME
|
||||
rm -rf $zipdir $zipdir.zip
|
||||
if [[ "$BUILD_REASON" == "Schedule" ]] ; then
|
||||
zipname=WezTerm-windows-nightly.zip
|
||||
else
|
||||
zipname=$zipdir.zip
|
||||
fi
|
||||
rm -rf $zipdir $zipname
|
||||
mkdir $zipdir
|
||||
cp target/release/wezterm.exe target/release/wezterm.pdb $zipdir
|
||||
7z a -tzip $zipdir.zip $zipdir
|
||||
7z a -tzip $zipname $zipdir
|
||||
;;
|
||||
linux-gnu)
|
||||
case `lsb_release -ds` in
|
||||
@ -61,7 +71,12 @@ Description: Wez's Terminal Emulator.
|
||||
Depends: libc6, libegl-mesa0, libxcb-icccm4, libxcb-ewmh2, libxcb-keysyms1, libxcb-xkb1, libxkbcommon0, libxkbcommon-x11-0, libfontconfig1, xdg-utils, libxcb-render0, libxcb-shape0, libx11-6, libegl1
|
||||
EOF
|
||||
cp target/release/wezterm pkg/debian/usr/bin
|
||||
fakeroot dpkg-deb --build pkg/debian wezterm-$TAG_NAME.deb
|
||||
if [[ "$BUILD_REASON" == "Schedule" ]] ; then
|
||||
debname=wezterm-nightly
|
||||
else
|
||||
debname=wezterm-$TAG_NAME
|
||||
fi
|
||||
fakeroot dpkg-deb --build pkg/debian $debname.deb
|
||||
rm -rf pkg
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user