Update cmake-windows.yml
This commit is contained in:
parent
a0dd5aeb74
commit
9d691af3b4
1 changed files with 12 additions and 17 deletions
23
.github/workflows/cmake-windows.yml
vendored
23
.github/workflows/cmake-windows.yml
vendored
|
@ -7,14 +7,13 @@ jobs:
|
||||||
install:
|
install:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install GIT
|
- name: Install GIT
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: Install-Module posh-git -Scope CurrentUser -Force
|
run: Install-Module posh-git -Scope CurrentUser -Force
|
||||||
|
|
||||||
- name: Install choco
|
- name: Install CHOCOLATERY
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
|
|
||||||
|
@ -36,7 +35,14 @@ jobs:
|
||||||
- name: Clone repos
|
- name: Clone repos
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: git clone https://github.com/xmrig/xmrig.git
|
run: git clone https://github.com/xmrig/xmrig.git
|
||||||
- shell: powershell
|
|
||||||
|
- shell: msys2 {0}
|
||||||
|
run: |
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
pacman -S mingw-w64-x86_64-gcc git make unzip --noconfirm
|
||||||
|
|
||||||
|
- name: Download the latest release of the dependencies.
|
||||||
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$URL_Latest = Invoke-WebRequest -Uri https://api.github.com/repos/xmrig/xmrig-deps/releases/latest | Select-Object -Expand Content | jq '.zipball_url'
|
$URL_Latest = Invoke-WebRequest -Uri https://api.github.com/repos/xmrig/xmrig-deps/releases/latest | Select-Object -Expand Content | jq '.zipball_url'
|
||||||
Get-Variable URL_Latest
|
Get-Variable URL_Latest
|
||||||
|
@ -45,19 +51,8 @@ jobs:
|
||||||
|
|
||||||
- shell: msys2 {0}
|
- shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
pacman -S unzip
|
|
||||||
unzip xmrig-deps.zip
|
unzip xmrig-deps.zip
|
||||||
mv xmrig-xmrig* xmrig-deps
|
mv xmrig-xmrig* xmrig-deps
|
||||||
|
|
||||||
- shell: powershell
|
|
||||||
run: Invoke-WebRequest -Uri https://api.github.com/repos/xmrig/xmrig-deps/releases/latest | Select-Object -Expand Content | jq '.zipball_url'
|
|
||||||
|
|
||||||
- uses: msys2/setup-msys2@v2
|
|
||||||
|
|
||||||
- shell: msys2 {0}
|
|
||||||
run: |
|
|
||||||
pacman -Syu --noconfirm
|
|
||||||
pacman -S mingw-w64-x86_64-gcc git make --noconfirm
|
|
||||||
mkdir xmrig/build
|
mkdir xmrig/build
|
||||||
cd xmrig/build
|
cd xmrig/build
|
||||||
ls
|
ls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue