-
Notifications
You must be signed in to change notification settings - Fork 102
61 lines (58 loc) · 1.75 KB
/
workflow-tester10.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test 10
on:
workflow_dispatch:
push:
jobs:
windows-1:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Install Ritchie Windows Powershell
run: |
md .os
ls
echo "= = = DOWNLOAD = = = "
Invoke-WebRequest -Uri "https://v3.ritchiecli.io/3.1.0/windows/rit.exe" -OutFile rit.exe
ls
echo "= = = MOVE = = = "
move .\\rit.exe .\\.os
ls
echo "= = = OS = = = "
cd .os
ls
echo "= = = PWD = = = "
# set CurrentDir="%~dp0"
$PWD = Get-Location
echo "PWD:" $PWD
# echo "= = = SET PATH = = = "
# $PATH = [Environment]::GetEnvironmentVariable("PATH")
# [Environment]::SetEnvironmentVariable("PATH", "$PATH;$PWD")
echo "= = = ALIAS = = = "
Set-Alias -Name rit -Value $PWD\rit.exe
rit --version
shell: powershell
- name: Teste 1
if: always()
run: |
cd .os
.\rit.exe --version
windows-2:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Create binary from branch
run: |
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install curl[tool]
cd $GITHUB_WORKSPACE
curl https://commons-repo.ritchiecli.io/2.11.3/windows/rit.exe --output rit.exe
echo '{"addCommons":false, "sendMetrics":true, "runType":"local"}' | ./rit.exe init --stdin
echo "= = = ALIAS = = = "
PWD = $(pwd)
PATH=$PATH:$PWD
echo "= = = VERSION = = = "
rit --version
shell: bash