Skip to content

Commit

Permalink
Merge pull request #9 from vitelabs/development
Browse files Browse the repository at this point in the history
Add build workflows
  • Loading branch information
vuilder0 authored Oct 6, 2021
2 parents d5840ad + a71a428 commit a79fb24
Show file tree
Hide file tree
Showing 7 changed files with 591 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build for Linux

on:
workflow_dispatch:
inputs:
branch:
description: 'branch'
required: true
default: main
tag:
description: 'tag prefix'
required: false

env:
BUILD_TYPE: Release

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Update Submodule
run: git submodule update --init --recursive

- name: Install Dependencies
run: bash ${{github.workspace}}/scripts/install_deps.sh

- name: Build
run: bash ${{github.workspace}}/build.sh








37 changes: 37 additions & 0 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build for MacOS

on:
workflow_dispatch:
inputs:
branch:
description: 'branch'
required: true
default: main
tag:
description: 'tag prefix'
required: false

env:
BUILD_TYPE: Release

jobs:
build-macos:
runs-on: macos-11

steps:
- uses: actions/checkout@v2

- name: Update Submodule
run: git submodule update --init --recursive

- name: Install Dependencies
run: |
bash ${{github.workspace}}/scripts/osx_install_dependencies.sh
- name: Build
run: |
mkdir -p build/
echo -n > prerelease.txt
cd build/
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j3
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ find_package(Threads)
include(EthPolicy)
eth_policy()

set(PROJECT_VERSION "0.8.0")

# Figure out what compiler and system are we using
include(ViteCompilerSettings)
Expand Down
2 changes: 1 addition & 1 deletion libsolidity/codegen/CompilerContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ CompilerContext& CompilerContext::appendPanic(util::PanicCode _code)
revert(0, 0x24)
})");
templ("selector", util::selectorFromSignature("Panic(uint256)").str());
templ("code", u256(_code).str());
templ("code", u256(static_cast<unsigned>(_code)).str());
appendInlineAssembly(templ.render());
return *this;
}
Expand Down
Loading

0 comments on commit a79fb24

Please sign in to comment.