-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Bump emulator and grpc-interfaces
- Add --version option and bump the version for the next release. - Update boost to version 1.81
- Loading branch information
Showing
13 changed files
with
106 additions
and
65 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
name: Build/Test/Release | ||
on: [push] | ||
env: | ||
EMULATOR_REPOSITORY: cartesi/machine-emulator | ||
EMULATOR_TAG: 0.15.2 | ||
ROM_VERSION: v0.17.0 | ||
EMULATOR_REPOSITORY: ghcr.io/cartesi/machine-emulator | ||
EMULATOR_TAG: main | ||
KERNEL_VERSION: v0.17.0 | ||
LINUX_VERSION: 5.15.63-ctsi-2-v0.17.0 | ||
ROOTFS_VERSION: v0.18.0 | ||
|
@@ -141,19 +140,11 @@ jobs: | |
tag: ${{ env.KERNEL_VERSION }} | ||
file: linux-${{ env.LINUX_VERSION }}.bin | ||
|
||
- name: Download [rom.bin] | ||
uses: Legion2/[email protected] | ||
with: | ||
repository: ${{ github.repository_owner }}/machine-emulator-rom | ||
tag: ${{ env.ROM_VERSION }} | ||
file: rom-${{ env.ROM_VERSION }}.bin | ||
|
||
- name: Move images to cartesi images folder | ||
run: | | ||
mkdir -m 755 -p /tmp/cartesi-machine-images | ||
mv rom-*.bin linux-*.bin rootfs-*.ext2 ${{ env.HOST_IMAGES_PATH }} | ||
cd ${{ env.HOST_IMAGES_PATH }} && ln -s linux-${{ env.LINUX_VERSION }}.bin linux.bin | ||
cd ${{ env.HOST_IMAGES_PATH }} && ln -s rom-${{ env.ROM_VERSION }}.bin rom.bin | ||
cd ${{ env.HOST_IMAGES_PATH }} && ln -s rootfs-${{ env.ROOTFS_VERSION }}.ext2 rootfs.ext2 | ||
- name: Run test suite inside the docker image (Linux/${{ matrix.arch }}) | ||
|
@@ -252,19 +243,11 @@ jobs: | |
tag: ${{ env.KERNEL_VERSION }} | ||
file: linux-${{ env.LINUX_VERSION }}.bin | ||
|
||
- name: Download [rom.bin] | ||
uses: Legion2/[email protected] | ||
with: | ||
repository: ${{ github.repository_owner }}/machine-emulator-rom | ||
tag: ${{ env.ROM_VERSION }} | ||
file: rom-${{ env.ROM_VERSION }}.bin | ||
|
||
- name: Move images to cartesi images folder | ||
run: | | ||
mkdir -m 755 -p /tmp/cartesi-machine-images | ||
mv rom-*.bin linux-*.bin rootfs-*.ext2 ${{ env.HOST_IMAGES_PATH }} | ||
cd ${{ env.HOST_IMAGES_PATH }} && ln -s linux-${{ env.LINUX_VERSION }}.bin linux.bin | ||
cd ${{ env.HOST_IMAGES_PATH }} && ln -s rom-${{ env.ROM_VERSION }}.bin rom.bin | ||
cd ${{ env.HOST_IMAGES_PATH }} && ln -s rootfs-${{ env.ROOTFS_VERSION }}.ext2 rootfs.ext2 | ||
- name: Run test suite inside the docker image (Linux/${{ matrix.arch }}) | ||
|
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,6 +1,3 @@ | ||
[submodule "lib/grpc-interfaces"] | ||
path = lib/grpc-interfaces | ||
url = ../grpc-interfaces.git | ||
[submodule "lib/machine-emulator-defines"] | ||
path = lib/machine-emulator-defines | ||
url = ../machine-emulator-defines.git |
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
Submodule machine-emulator-defines
deleted from
4f164a
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright Cartesi and individual authors (see AUTHORS) | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#ifndef HTIF_DEFINES_H | ||
#define HTIF_DEFINES_H | ||
|
||
#include <cstdint> | ||
|
||
/// \brief HTIF protocol shifts | ||
enum HTIF_protocol_shift : uint64_t { HTIF_DEV_SHIFT = 56, HTIF_CMD_SHIFT = 48, HTIF_DATA_SHIFT = 0 }; | ||
|
||
/// \brief HTIF protocol masks | ||
enum HTIF_protocol_mask : uint64_t { | ||
HTIF_DEV_MASK = 0xFF00000000000000, | ||
HTIF_CMD_MASK = 0x00FF000000000000, | ||
HTIF_DATA_MASK = 0x0000FFFFFFFFFFFF | ||
}; | ||
|
||
/// \brief HTIF device identifiers | ||
enum HTIF_device : uint64_t { HTIF_DEVICE_HALT = 0, HTIF_DEVICE_CONSOLE = 1, HTIF_DEVICE_YIELD = 2 }; | ||
|
||
/// \brief HTIF device commands | ||
enum HTIF_device_command : uint64_t { | ||
HTIF_HALT_HALT = 0, | ||
HTIF_CONSOLE_GETCHAR = 0, | ||
HTIF_CONSOLE_PUTCHAR = 1, | ||
HTIF_YIELD_AUTOMATIC = 0, | ||
HTIF_YIELD_MANUAL = 1 | ||
}; | ||
|
||
/// \brief HTIF yield reasons | ||
enum HTIF_yield_reason : uint64_t { | ||
HTIF_YIELD_REASON_PROGRESS = 0, | ||
HTIF_YIELD_REASON_RX_ACCEPTED = 1, | ||
HTIF_YIELD_REASON_RX_REJECTED = 2, | ||
HTIF_YIELD_REASON_TX_VOUCHER = 3, | ||
HTIF_YIELD_REASON_TX_NOTICE = 4, | ||
HTIF_YIELD_REASON_TX_REPORT = 5, | ||
HTIF_YIELD_REASON_TX_EXCEPTION = 6, | ||
}; | ||
|
||
#endif /* end of include guard: HTIF_DEFINES_H */ |
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