-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 872 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: rust
on:
workflow_dispatch:
jobs:
build:
runs-on: ASrunner
steps:
- run: git clone https://github.com/maxim-lobanov/runner-test-repo-win.git .
- run: |
$cargoTarget = "$env:USERPROFILE\.cargo"
if (-not (Test-Path $cargoTarget))
{
New-Item -ItemType Junction -Path $cargoTarget -Target "C:\Rust\.cargo"
}
$rustupTarget = "$env:USERPROFILE\.rustup"
if (-not (Test-Path $rustupTarget))
{
New-Item -ItemType Junction -Path $rustupTarget -Target "C:\Rust\.rustup"
}
cd rust/src # no default chain
rustc hello.rs
./hello
shell: pwsh
- run: |
rustup install nightly
rustup show
shell: pwsh
- run: |
rust/scripts/cargo.ps1
shell: pwsh