-
Notifications
You must be signed in to change notification settings - Fork 2
141 lines (119 loc) · 4.12 KB
/
build.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Build Windows Client
on: [push, workflow_dispatch]
jobs:
load_conf:
runs-on: ubuntu-22.04
outputs:
refs: ${{ steps.load_step.outputs.refs }}
steps:
- name: Checkout
uses: actions/checkout@v3
- id: load_step
name: Load Config
run: |
python loadConf.py
cat $GITHUB_OUTPUT
prepare_proxspace:
runs-on: windows-latest
defaults:
run:
shell: pwsh
env:
MSYSTEM: MINGW64
PYTHONHOME: /mingw64
steps:
- name: Set Environment
run: |
$Env:PATH = "C:/ProxSpace/msys2/mingw64/bin;C:/ProxSpace/msys2/usr/local/bin;C:/ProxSpace/msys2/usr/bin;C:/ProxSpace/msys2/bin;"+$Env:PATH
echo $Env:PATH
echo $Env:PATH >> "$GITHUB_ENV"
- name: ProxSpace download
run: Invoke-WebRequest "https://github.com/Gator96100/ProxSpace/archive/master.zip" -outfile "C:\proxspace.zip" -Passthru
- name: ProxSpace Copy
run: copy "C:\proxspace.zip" ./
- name: Cache ProxSpace
id: cache-proxspace
uses: actions/cache@v3
env:
cache-name: cache-proxspace
with:
path: C:/ProxSpace
key: proxspace-${{ hashFiles('./proxspace.zip') }}-${{ github.run_id }}
restore-keys: |
proxspace-${{ hashFiles('./proxspace.zip') }}-
- name: ProxSpace extract
run: Expand-Archive -LiteralPath "C:\proxspace.zip" -DestinationPath "C:\"
- name: ProxSpace delete zip
run: |
Remove-Item "C:\proxspace.zip"
Remove-Item "./proxspace.zip"
- name: ProxSpace rename folder
run: Get-ChildItem -Path "C:\ProxSpace-*" | Rename-Item -NewName (Split-Path C:\ProxSpace -Leaf)
- name: ProxSpace version
run: |
$psversion = (Select-String -Pattern 'PSVERSION=' -SimpleMatch -Path "C:\ProxSpace\setup\09-proxspace_setup.post").Line.Split("""")[1]
Write-Host "ProxSpace version: $psversion"
- name: ProxSpace initial startup
working-directory: C:\ProxSpace
run: ./runme64.bat -c "exit"
build:
runs-on: windows-latest
needs: [load_conf, prepare_proxspace]
strategy:
fail-fast: false
matrix:
ref: ${{ fromJSON(needs.load_conf.outputs.refs) }}
defaults:
run:
shell: pwsh
env:
MSYSTEM: MINGW64
PYTHONHOME: /mingw64
steps:
- name: Set Environment
run: |
$Env:PATH = "C:/ProxSpace/msys2/mingw64/bin;C:/ProxSpace/msys2/usr/local/bin;C:/ProxSpace/msys2/usr/bin;C:/ProxSpace/msys2/bin;"+$Env:PATH
echo $Env:PATH
echo $Env:PATH >> "$GITHUB_ENV"
- name: ProxSpace download
run: Invoke-WebRequest "https://github.com/Gator96100/ProxSpace/archive/master.zip" -outfile "C:\proxspace.zip" -Passthru
- name: ProxSpace Copy
run: copy "C:\proxspace.zip" ./
- name: Cache ProxSpace
id: cache-proxspace
uses: actions/cache@v3
env:
cache-name: cache-proxspace
with:
path: C:/ProxSpace
key: proxspace-${{ hashFiles('./proxspace.zip') }}-${{ github.run_id }}
restore-keys: |
proxspace-${{ hashFiles('./proxspace.zip') }}-
- name: ProxSpace delete zip
run: |
Remove-Item "C:\proxspace.zip"
Remove-Item "./proxspace.zip"
- name: ProxSpace initial startup
working-directory: C:\ProxSpace
run: ./runme64.bat -c "exit"
- name: Checkout Proxmark3
env:
MATRIX_REF: ${{ matrix.ref }}
working-directory: C:\ProxSpace
run: |
mkdir -Force ./pm3
cd pm3
git clone https://github.com/RfidResearchGroup/proxmark3.git --filter=blob:none --no-checkout
cd proxmark3
git checkout ${{ env.MATRIX_REF }}
echo ${{ env.MATRIX_REF }}
- name: ProxSpace autobuild
working-directory: C:/ProxSpace
run: |
./autobuild.bat
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: client_${{ matrix.ref }}
path: |
C:/ProxSpace/builds/**/*.7z