forked from rooch-network/rooch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '4b1455160a92181c304e87395cf94328aa611a7b'
* commit '4b1455160a92181c304e87395cf94328aa611a7b': [Testing] moveos_stdlib::account_storage (rooch-network#355) add release workflow (rooch-network#343) [cli] return a string for init command. (rooch-network#347) Feature owen eth rooch address mapping (rooch-network#348) Fix the issue of illegal invocation of private_generics in the module without throwing an error. (rooch-network#345)
- Loading branch information
Showing
21 changed files
with
547 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release asset bot | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
name: Build release asset | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- ubuntu-latest | ||
- ubuntu-18.04 | ||
- ubuntu-22.04 | ||
- macos-latest | ||
- windows-latest | ||
runs-on: ${{matrix.platform}} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797 | ||
uses: KyleMayes/install-llvm-action@v1 | ||
if: matrix.platform == 'windows-latest' | ||
with: | ||
version: "11.0" | ||
directory: ${{ runner.temp }}/llvm | ||
- name: Set LIBCLANG_PATH | ||
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | ||
if: matrix.platform == 'windows-latest' | ||
- name: build for ${{ matrix.platform }} | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
|
||
- name: build rooch release asset | ||
run: bash ./scripts/release.sh ${{ matrix.platform }} | ||
|
||
- name: upload artifact asset | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ github.event_name != 'release'}} | ||
with: | ||
name: rooch-${{ matrix.platform }}.zip | ||
path: ./rooch-${{ matrix.platform }}.zip | ||
|
||
- name: upload rooch release asset | ||
if: ${{ github.event_name == 'release'}} | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./rooch-${{ matrix.platform }}.zip | ||
asset_name: rooch-${{ matrix.platform }}.zip | ||
asset_content_type: application/zip |
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
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
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
4 changes: 2 additions & 2 deletions
4
crates/rooch-framework-tests/tests/cases/entry_function/entry_function_invalid_struct.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 3-12: | ||
error: type `test::Foo` is not supported as a parameter type | ||
Error: error: type `test::Foo` is not supported as a parameter type | ||
┌─ /tmp/tempfile:8:5 | ||
│ | ||
8 │ ╭ entry public fun test_entry_function_invalid_struct( _foo: Foo ){ | ||
9 │ │ } | ||
│ ╰─────^ | ||
|
||
status EXECUTED | ||
|
4 changes: 2 additions & 2 deletions
4
crates/rooch-framework-tests/tests/cases/entry_function/entry_function_valid_reference.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 3-33: | ||
error: type `&mut signer` is not supported as a parameter type | ||
Error: error: type `&mut signer` is not supported as a parameter type | ||
┌─ /tmp/tempfile:9:5 | ||
│ | ||
9 │ ╭ entry public fun test_entry_function_valid_reference_mut_signer( _: &mut signer ){ | ||
10 │ │ } | ||
│ ╰─────^ | ||
|
||
status EXECUTED | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.