Updated for real build
This commit is contained in:
parent
99e4bae97e
commit
12e05b601c
1 changed files with 37 additions and 4 deletions
41
.github/workflows/main.yml
vendored
41
.github/workflows/main.yml
vendored
|
@ -1,9 +1,42 @@
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
# Sequence of patterns matched against refs/tags
|
||||||
|
tags:
|
||||||
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
|
name: Create release and build artifacts from v* tag
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Create release and build artifacts from v* tag
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Builds xmrig
|
|
||||||
steps:
|
steps:
|
||||||
- name: Builds xmrig
|
- name: Checkout code
|
||||||
run: echo OK
|
uses: actions/checkout@master
|
||||||
|
- name: Build project on Linux
|
||||||
|
run: |
|
||||||
|
cmake . -DWITH_TLS=OFF -DWITH_HTTPD=OFF -DWITH_HWLOC=OFF
|
||||||
|
make -j$(nproc)
|
||||||
|
cp src/config.json .
|
||||||
|
mv xmrig-notls xmrig
|
||||||
|
tar cfz xmrig-${{github.ref}}-lin64.tar.gz xmrig config.json
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Release ${{ github.ref }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
- name: Upload Linux Build Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./xmrig-${{github.ref}}-lin64.tar.gz
|
||||||
|
asset_name: xmrig-${{github.ref}}-lin64.tar.gz
|
||||||
|
asset_content_type: application/zip
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue