CI: stop releasing archives, just release binaries
This commit is contained in:
parent
2cd69aaf15
commit
9d37f3d929
|
@ -111,7 +111,7 @@ deploy:
|
||||||
api_key:
|
api_key:
|
||||||
secure: $GITHUB_OAUTH
|
secure: $GITHUB_OAUTH
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
|
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET*
|
||||||
on:
|
on:
|
||||||
# TODO Here you can pick which targets will generate binary releases
|
# TODO Here you can pick which targets will generate binary releases
|
||||||
# In this example, there are some targets that are tested using the stable
|
# In this example, there are some targets that are tested using the stable
|
||||||
|
|
|
@ -64,7 +64,7 @@ before_deploy:
|
||||||
- ps: ci\before_deploy.ps1
|
- ps: ci\before_deploy.ps1
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
artifact: /.*\.zip/
|
artifact: /wireguard-proxy-.*\.exe/
|
||||||
# TODO update `auth_token.secure`
|
# TODO update `auth_token.secure`
|
||||||
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
|
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
|
||||||
# - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt
|
# - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt
|
||||||
|
|
|
@ -8,12 +8,10 @@ Set-Location $ENV:Temp
|
||||||
New-Item -Type Directory -Name $STAGE
|
New-Item -Type Directory -Name $STAGE
|
||||||
Set-Location $STAGE
|
Set-Location $STAGE
|
||||||
|
|
||||||
$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
|
$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).exe"
|
||||||
|
|
||||||
# TODO Update this to package the right artifacts
|
# TODO Update this to package the right artifacts
|
||||||
Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\wireguard-proxy.exe" '.\'
|
Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\wireguard-proxy.exe" "$ZIP"
|
||||||
|
|
||||||
7z a "$ZIP" *
|
|
||||||
|
|
||||||
Push-AppveyorArtifact "$ZIP"
|
Push-AppveyorArtifact "$ZIP"
|
||||||
|
|
||||||
|
|
|
@ -3,17 +3,7 @@
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local src=$(pwd) \
|
local src=$(pwd)
|
||||||
stage=
|
|
||||||
|
|
||||||
case $TRAVIS_OS_NAME in
|
|
||||||
linux)
|
|
||||||
stage=$(mktemp -d)
|
|
||||||
;;
|
|
||||||
osx)
|
|
||||||
stage=$(mktemp -d -t tmp)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
test -f Cargo.lock || cargo generate-lockfile
|
test -f Cargo.lock || cargo generate-lockfile
|
||||||
|
|
||||||
|
@ -24,19 +14,13 @@ main() {
|
||||||
case $TARGET in
|
case $TARGET in
|
||||||
x86_64-pc-windows-gnu)
|
x86_64-pc-windows-gnu)
|
||||||
strip target/$TARGET/release/wireguard-proxy.exe || echo 'strip failed, ignoring...'
|
strip target/$TARGET/release/wireguard-proxy.exe || echo 'strip failed, ignoring...'
|
||||||
cp target/$TARGET/release/wireguard-proxy.exe $stage/
|
cp target/$TARGET/release/wireguard-proxy.exe $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.exe
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
strip target/$TARGET/release/wireguard-proxy || echo 'strip failed, ignoring...'
|
strip target/$TARGET/release/wireguard-proxy || echo 'strip failed, ignoring...'
|
||||||
cp target/$TARGET/release/wireguard-proxy $stage/
|
cp target/$TARGET/release/wireguard-proxy $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cd $stage
|
|
||||||
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
|
|
||||||
cd $src
|
|
||||||
|
|
||||||
rm -rf $stage
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue