Remove gas used from the miner (#2472) #2993
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build - Dev | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "!v*" | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
env: | |
BUILD_VERSION: latest # Computed | |
DOCKER_HUB_USER: defi | |
# Note: We do not use debug build on CI for dev as well, since debug builds | |
# take 5x the amount of space and run the GitHub CI workers out of space. | |
# make.sh still defaults to debug for local builds | |
MAKE_DEBUG: 0 | |
GIT_VERSION: 1 | |
jobs: | |
linux-x64: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: x86_64-pc-linux-gnu | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Populate environment | |
run: ./make.sh ci-export-vars | |
- name: Build and package | |
run: ./make.sh docker-release | |
- name: Publish artifact - x86_64-pc-linux-gnu | |
uses: actions/upload-artifact@v3 | |
with: | |
name: defichain-${{ env.BUILD_VERSION }}-x86_64-pc-linux-gnu | |
path: ./build/defichain-${{ env.BUILD_VERSION }}-x86_64-pc-linux-gnu.tar.gz | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ env.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
- name: Push to Docker Hub | |
run: | | |
set -e; ver=${{ env.BUILD_VERSION }} | |
docker tag defichain-x86_64-pc-linux-gnu:${ver} defi/defichain:${ver} | |
docker push defi/defichain:${ver} | |
win-x64: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: x86_64-w64-mingw32 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Populate environment | |
run: ./make.sh ci-export-vars | |
- name: Build and package | |
run: ./make.sh docker-release | |
- name: Publish artifact - x86_64-w64-mingw32 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: defichain-${{ env.BUILD_VERSION }}-x86_64-w64-mingw32 | |
path: ./build/defichain-${{ env.BUILD_VERSION }}-x86_64-w64-mingw32.tar.gz | |
osx-x64: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: x86_64-apple-darwin | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Populate environment | |
run: ./make.sh ci-export-vars | |
- name: Build and package | |
run: ./make.sh docker-release | |
- name: Publish artifact - x86_64-apple-darwin | |
uses: actions/upload-artifact@v3 | |
with: | |
name: defichain-${{ env.BUILD_VERSION }}-x86_64-apple-darwin | |
path: ./build/defichain-${{ env.BUILD_VERSION }}-x86_64-apple-darwin.tar.gz |