57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
name: CMake windows
|
|
on: [push]
|
|
env:
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
BUILD_TYPE: Release
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install GIT
|
|
shell: powershell
|
|
run: Install-Module posh-git -Scope CurrentUser -Force
|
|
|
|
- name: Install choco
|
|
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'))
|
|
|
|
- shell: powershell
|
|
run: choco feature enable -n allowGlobalConfirmation
|
|
|
|
- shell: powershell
|
|
run: choco install cmake -y --installargs 'ADD_CMAKE_TO_PATH=System'
|
|
|
|
- shell: powershell
|
|
run: choco install jq
|
|
|
|
- shell: powershell
|
|
run: choco install curl
|
|
|
|
- shell: powershell
|
|
run: refreshenv
|
|
|
|
- name: Clone repos
|
|
shell: powershell
|
|
run: |
|
|
git clone https://github.com/xmrig/xmrig.git
|
|
## quitar ## git clone https://github.com/xmrig/xmrig-deps.git
|
|
|
|
- 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
|
|
cd xmrig/build
|
|
ls
|
|
pwd
|
|
'C:\Program Files\CMake\bin\cmake.exe' .. -G "Unix Makefiles" -DXMRIG_DEPS=../../xmrig-deps/gcc/x64
|
|
make -j$(nproc)
|
|
|