mirror of
https://github.com/xmrig/xmrig.git
synced 2025-04-13 10:11:55 +00:00
Create build.yaml
This commit is contained in:
parent
ab61d5282d
commit
5d831c05e5
1 changed files with 35 additions and 0 deletions
35
.github/workflows/build.yaml
vendored
Normal file
35
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: Build
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
working-dir: ./build
|
||||
steps:
|
||||
- name: Install packages
|
||||
run: |
|
||||
sudo apt-get install -y build-essential libuv1-dev libssl-dev libhwloc-dev
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Create directory
|
||||
run: mkdir build
|
||||
- name: Configure build
|
||||
working-directory: ${{env.working-dir}}
|
||||
run: cmake ..
|
||||
- name: Build
|
||||
working-directory: ${{env.working-dir}}
|
||||
run: make -j 6
|
||||
- name: Make executable
|
||||
working-directory: ${{env.working-dir}}
|
||||
run: chmod u+x ./xmrig
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: my-xmrig
|
||||
path: build/xmrig
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: build/xmrig
|
Loading…
Reference in a new issue