forked from xmrig/xmrig
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 1.07 KB
/
release.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
name: Compile binaries
# For production
# on:
# release:
# types: [published]
# For testing
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install deps
run: sudo apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev zip
- name: build
run: mkdir build && cd build && cmake .. && make
- name: zip
run: cd build && mkdir kryptokrona-xmrig-${{ github.event.head_commit.message }}-linux && mv xmrig kryptokrona-xmrig-${{ github.event.head_commit.message }}-linux && zip -r kryptokrona-xmrig-${{ github.event.head_commit.message }}-linux.zip kryptokrona-xmrig-${{ github.event.head_commit.message }}-linux
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(${{ github.event.head_commit.message }}, 'v*)
with:
tag_name: ${{ github.event.head_commit.message }}
files: build/kryptokrona-xmrig-${{ github.event.head_commit.message }}-linux.zip