Skip to content

Commit f66f7fc

Browse files
committed
Fix appveyor
1 parent 385a899 commit f66f7fc

File tree

1 file changed

+36
-45
lines changed

1 file changed

+36
-45
lines changed

appveyor.yml

Lines changed: 36 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,58 +21,49 @@ build_script:
2121
test_script:
2222
- cmd: cargo test --all %RELEASE% --verbose -- --ignored
2323

24-
for:
24+
branches:
25+
only:
26+
- master
27+
- /v\d+\.\d+\.\d+/
28+
environment:
29+
matrix:
30+
# Build a release build on master to make sure it builds.
31+
- channel: stable
32+
target: x86_64-pc-windows-msvc
33+
RELEASE: --release
34+
DEPLOY: true
2535

26-
- branches:
27-
only:
28-
- master
29-
environment:
30-
matrix:
31-
- channel: stable
32-
target: x86_64-pc-windows-msvc
33-
- channel: beta
34-
target: x86_64-pc-windows-msvc
35-
- channel: nightly
36-
target: x86_64-pc-windows-msvc
37-
- channel: 1.41.0 # Oldest supported version. Keep in sync with README.md.
38-
target: x86_64-pc-windows-msvc
39-
# Build a release build on master to make sure it builds.
40-
- channel: stable
41-
target: x86_64-pc-windows-msvc
42-
RELEASE: --release
43-
44-
- branches:
45-
only:
46-
- /v\d+\.\d+\.\d+/
47-
- master
48-
environment:
49-
# Only build a release build for releases.
50-
channel: stable
51-
target: x86_64-pc-windows-msvc
52-
RELEASE: --release
36+
- channel: stable
37+
target: x86_64-pc-windows-msvc
38+
- channel: beta
39+
target: x86_64-pc-windows-msvc
40+
- channel: nightly
41+
target: x86_64-pc-windows-msvc
42+
- channel: 1.41.0 # Oldest supported version. Keep in sync with README.md.
43+
target: x86_64-pc-windows-msvc
5344

54-
before_deploy:
55-
- ps: |
56-
$NAME = "rblake2sum-${env:APPVEYOR_REPO_TAG_NAME}-${env:TARGET}"
57-
New-Item -Path $NAME -ItemType directory
58-
Copy-Item target/release/rblake2sum.exe "${NAME}/"
59-
Copy-Item LICENSE-MIT "${NAME}/"
60-
Copy-Item LICENSE-MPL2 "${NAME}/"
61-
Copy-Item LICENSE-APACHE "${NAME}/"
62-
Copy-Item rblake2sum/README.md "${NAME}/"
63-
7z a -ttar "${NAME}.tar" "${NAME}"
64-
7z a "${NAME}.tar.gz" "${NAME}.tar"
65-
(Get-FileHash "${NAME}.tar.gz").Hash | Out-File "${NAME}.tar.gz.sha256" -NoNewline
66-
Push-AppveyorArtifact "${NAME}.tar.gz" -DeploymentName windep
67-
Push-AppveyorArtifact "${NAME}.tar.gz.sha256" -DeploymentName windep
45+
before_deploy:
46+
- ps: |
47+
$NAME = "rblake2sum-${env:APPVEYOR_REPO_TAG_NAME}-${env:TARGET}"
48+
New-Item -Path $NAME -ItemType directory
49+
Copy-Item target/release/rblake2sum.exe "${NAME}/"
50+
Copy-Item LICENSE-MIT "${NAME}/"
51+
Copy-Item LICENSE-MPL2 "${NAME}/"
52+
Copy-Item LICENSE-APACHE "${NAME}/"
53+
Copy-Item rblake2sum/README.md "${NAME}/"
54+
7z a -ttar "${NAME}.tar" "${NAME}"
55+
7z a "${NAME}.tar.gz" "${NAME}.tar"
56+
(Get-FileHash "${NAME}.tar.gz").Hash | Out-File "${NAME}.tar.gz.sha256" -NoNewline
57+
Push-AppveyorArtifact "${NAME}.tar.gz" -DeploymentName windep
58+
Push-AppveyorArtifact "${NAME}.tar.gz.sha256" -DeploymentName windep
6859
69-
deploy:
60+
deploy:
61+
- provider: GitHub
7062
artifact: windep
7163
auth_token:
7264
secure: wCfX3C2GdWZbVR69JIDqKnQmrkm2Qylm1d1wJ6bDnqtlMZm+jr2QAB/nL8aS7ww/
7365
description: 'Built by appveyor CI'
7466
on:
75-
branch: master
7667
APPVEYOR_REPO_TAG: true
77-
provider: GitHub
68+
DEPLOY: true
7869
force_update: true

0 commit comments

Comments
 (0)