Fixed old binary build
This commit is contained in:
parent
48bc0abcf9
commit
4d0a24558d
1 changed files with 5 additions and 10 deletions
15
.github/workflows/deploy.yml
vendored
15
.github/workflows/deploy.yml
vendored
|
@ -112,11 +112,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ubuntu:12.04
|
container: ubuntu:12.04
|
||||||
steps:
|
steps:
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
env
|
|
||||||
echo xxx ${{ github.ref }} xxx
|
|
||||||
echo git checkout ${GITHUB_REF:10}
|
|
||||||
- name: Prepare build tools
|
- name: Prepare build tools
|
||||||
run: |
|
run: |
|
||||||
sed -i -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
|
sed -i -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
|
||||||
|
@ -132,7 +127,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_NAME
|
||||||
- name: Build project on Ubuntu 12.04
|
- name: Build project on Ubuntu 12.04
|
||||||
run: |
|
run: |
|
||||||
cd scripts && ./build_deps.sh && cd ..
|
cd scripts && ./build_deps.sh && cd ..
|
||||||
|
@ -163,7 +158,7 @@ jobs:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Set version
|
- name: Set version
|
||||||
id: version
|
id: version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF:10}
|
run: echo ::set-output name=VERSION::$GITHUB_REF_NAME
|
||||||
- name: Download Windows build artifacts
|
- name: Download Windows build artifacts
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
@ -239,7 +234,7 @@ jobs:
|
||||||
cp ../windows_build/windows_build.zip xmrig.zip
|
cp ../windows_build/windows_build.zip xmrig.zip
|
||||||
unzip xmrig.zip
|
unzip xmrig.zip
|
||||||
zip -u offline_miner_setup.zip xmrig.exe config.json WinRing0x64.sys
|
zip -u offline_miner_setup.zip xmrig.exe config.json WinRing0x64.sys
|
||||||
git commit -m "xmrig "${GITHUB_REF:10}" based release" xmrig.tar.gz xmrig.zip offline_miner_setup.zip
|
git commit -m "xmrig "$GITHUB_REF_NAME" based release" xmrig.tar.gz xmrig.zip offline_miner_setup.zip
|
||||||
git push
|
git push
|
||||||
cd ..
|
cd ..
|
||||||
- name: Update hiveos repo
|
- name: Update hiveos repo
|
||||||
|
@ -251,9 +246,9 @@ jobs:
|
||||||
tar xf ../ubuntu12_build/ubuntu12_build.tar.gz
|
tar xf ../ubuntu12_build/ubuntu12_build.tar.gz
|
||||||
mv xmrig mo_xmrig/xmrig
|
mv xmrig mo_xmrig/xmrig
|
||||||
mv config.json mo_xmrig/config_global.json
|
mv config.json mo_xmrig/config_global.json
|
||||||
export VER=${GITHUB_REF:10}
|
export VER=$GITHUB_REF_NAME
|
||||||
export VER=${VER//-/_}
|
export VER=${VER//-/_}
|
||||||
tar -zcvf mo_xmrig-$VER.tar.gz mo_xmrig
|
tar -zcvf mo_xmrig-$VER.tar.gz mo_xmrig
|
||||||
git add mo_xmrig-$VER.tar.gz mo_xmrig/xmrig mo_xmrig/config_global.json
|
git add mo_xmrig-$VER.tar.gz mo_xmrig/xmrig mo_xmrig/config_global.json
|
||||||
git commit -m "xmrig "${GITHUB_REF:10}" based release" mo_xmrig-$VER.tar.gz
|
git commit -m "xmrig "$GITHUB_REF_NAME" based release" mo_xmrig-$VER.tar.gz
|
||||||
git push
|
git push
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue