mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 17:32:47 -05:00
Fixed bug
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -10,6 +10,8 @@ jobs:
|
|||||||
name: Build CentOS 6 artifacts
|
name: Build CentOS 6 artifacts
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: centos:6
|
container: centos:6
|
||||||
|
env:
|
||||||
|
SHA8: ${GITHUB_SHA::8}
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare CentOS 6 tools
|
- name: Prepare CentOS 6 tools
|
||||||
run: |
|
run: |
|
||||||
@@ -19,7 +21,7 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/MoneroOcean/xmrig.git
|
git clone https://github.com/MoneroOcean/xmrig.git
|
||||||
git checkout ${{github.ref}:10}
|
git checkout ${GITHUB_REF:10}
|
||||||
cd xmrig
|
cd xmrig
|
||||||
- name: Build project on CentOS 6
|
- name: Build project on CentOS 6
|
||||||
run: |
|
run: |
|
||||||
@@ -27,12 +29,12 @@ jobs:
|
|||||||
scl enable devtoolset-6 "make -j$(nproc)"
|
scl enable devtoolset-6 "make -j$(nproc)"
|
||||||
cp src/config.json .
|
cp src/config.json .
|
||||||
mv xmrig-notls xmrig
|
mv xmrig-notls xmrig
|
||||||
tar cfz xmrig-${{github.ref}:10}-lin64.tar.gz xmrig config.json
|
tar cfz xmrig-${GITHUB_REF:10}-lin64.tar.gz xmrig config.json
|
||||||
- name: Upload CentOS 6 build artifact
|
- name: Upload CentOS 6 build artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: centos6_build
|
name: centos6_build
|
||||||
path: ./xmrig-${{github.ref}:10}-lin64.tar.gz
|
path: ./xmrig-${GITHUB_REF:10}-lin64.tar.gz
|
||||||
deploy:
|
deploy:
|
||||||
needs: build_lin_rh6
|
needs: build_lin_rh6
|
||||||
name: Create release and upload artifacts
|
name: Create release and upload artifacts
|
||||||
@@ -58,6 +60,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./xmrig-${{github.ref}:10}-lin64.tar.gz
|
asset_path: ./xmrig-${GITHUB_REF:10}-lin64.tar.gz
|
||||||
asset_name: xmrig-${{github.ref}:10}-lin64.tar.gz
|
asset_name: xmrig-${GITHUB_REF:10}-lin64.tar.gz
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|||||||
Reference in New Issue
Block a user