Skip to content

Commit

Permalink
Commit to test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Feb 8, 2021
1 parent 387fa6c commit 8813a0c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,40 @@ tasks:
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- taskId: {$eval: as_slugid("build_windows_release")}
created: {$fromNow: ''}
deadline: {$fromNow: '2 hour'}
provisionerId: proj-relman
workerType: win2012r2
payload:
maxRunTime: 3600
command:
- set VSWHERE=%programfiles(x86)%\Microsoft Visual Studio\Installer
- set VS_BINS=VC\Tools\MSVC\*\bin\Hostx64\x64
- set RUSTUP_INIT_PATH=%CD%\rustup-init
- set CARGO_PATH=%USERPROFILE%\.cargo\bin
- set PATH=%RUSTUP_INIT_PATH%;%CARGO_PATH%;%VSWHERE%;%PATH%
- set VSWHERE_CMD=vswhere -latest -products * -find %VS_BINS%
- FOR /F "tokens=*" %%o IN ('%VSWHERE_CMD%') do (SET LIB_PATH=%%o)
- set PATH=%LIB_PATH%;%PATH%
- rustup-init -yv --default-toolchain stable ^
--default-host x86_64-pc-windows-msvc
- git clone --recursive --quiet ${repository}
- cd rust-code-analysis
- git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev}
- cargo build --workspace --release
- 7z a rust-code-analysis-win-cli-x86_64.zip "target\release\rust-code-analysis-cli.exe"
- 7z a rust-code-analysis-win-web-x86_64.zip "target\release\rust-code-analysis-web.exe"
mounts:
- content:
url: https://win.rustup.rs/
file: rustup-init\rustup-init.exe
metadata:
name: rust-code-analysis windows release build
description: rust-code-analysis windows release build
owner: cdenizet@mozilla.com
source: ${repository}/raw/${head_rev}/.taskcluster.yml

- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
then:
taskId: {$eval: as_slugid("test_mozilla_central")}
Expand Down

0 comments on commit 8813a0c

Please sign in to comment.