mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 08:42:40 -05:00
Test builds
This commit is contained in:
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -29,6 +29,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: windows_build
|
name: windows_build
|
||||||
path: windows_build.zip
|
path: windows_build.zip
|
||||||
|
|
||||||
build_lin:
|
build_lin:
|
||||||
name: Build Ubuntu artifacts
|
name: Build Ubuntu artifacts
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -49,6 +50,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ubuntu_build
|
name: ubuntu_build
|
||||||
path: ubuntu_build.tar.gz
|
path: ubuntu_build.tar.gz
|
||||||
|
|
||||||
build_lin_rh6:
|
build_lin_rh6:
|
||||||
name: Build CentOS 6 artifacts
|
name: Build CentOS 6 artifacts
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -76,6 +78,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: centos6_build
|
name: centos6_build
|
||||||
path: centos6_build.tar.gz
|
path: centos6_build.tar.gz
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: [build_win, build_lin, build_lin_rh6]
|
needs: [build_win, build_lin, build_lin_rh6]
|
||||||
name: Create release and upload artifacts
|
name: Create release and upload artifacts
|
||||||
|
|||||||
32
.github/workflows/test.yml
vendored
Normal file
32
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
on: push
|
||||||
|
|
||||||
|
name: Test builds
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_win:
|
||||||
|
name: Windows build
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Checkout deps
|
||||||
|
run: git clone https://github.com/xmrig/xmrig-deps.git
|
||||||
|
- name: Build project on Windows
|
||||||
|
run: |
|
||||||
|
cmake . -G "Visual Studio 16 2019" -DXMRIG_DEPS=xmrig-deps\msvc2019\x64
|
||||||
|
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"
|
||||||
|
.\MSBuild.exe /p:Configuration=Release $Env:GITHUB_WORKSPACE\xmrig.sln
|
||||||
|
|
||||||
|
build_lin:
|
||||||
|
name: Ubuntu build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Prepare Ubuntu tools
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y git build-essential cmake libuv1-dev libssl-dev libhwloc-dev
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Build project on Ubuntu
|
||||||
|
run: |
|
||||||
|
cmake .
|
||||||
|
make -j$(nproc)
|
||||||
Reference in New Issue
Block a user