Merge pull request #36 from Decompollaborate/develop

1.7.3
This commit is contained in:
Anghelo Carvajal 2023-06-10 10:43:47 -04:00 committed by GitHub
commit 8659624f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: make
name: Build C api and run tests
# Build on every branch push, tag push, and pull request change:
on: [push, pull_request]

View File

@ -33,6 +33,10 @@ jobs:
- name: Build Rust tests
run: cargo test --workspace
- name: Publish dry run
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
run: cargo publish --dry-run
- name: Upload crate
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

View File

@ -4,7 +4,7 @@
[package]
name = "rabbitizer"
# Version should be synced with include/common/RabbitizerVersion.h
version = "1.7.2"
version = "1.7.3"
edition = "2021"
authors = ["Anghelo Carvajal <angheloalf95@gmail.com>"]
description = "MIPS instruction decoder"
@ -14,7 +14,7 @@ repository = "https://github.com/Decompollaborate/rabbitizer"
license = "MIT"
keywords = ["MIPS", "decoder"]
build = "rust/build.rs"
include = ["/rust/src", "/rust/build.rs", "/src", "/include"]
include = ["/rust/src", "/rust/build.rs", "/src", "/include", "/tables"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -14,7 +14,7 @@ extern "C" {
// Header version
#define RAB_VERSION_MAJOR 1
#define RAB_VERSION_MINOR 7
#define RAB_VERSION_PATCH 2
#define RAB_VERSION_PATCH 3
#define RAB_VERSION_STR RAB_STRINGIFY(RAB_VERSION_MAJOR) "." RAB_STRINGIFY(RAB_VERSION_MINOR) "." RAB_STRINGIFY(RAB_VERSION_PATCH)

View File

@ -4,7 +4,7 @@
[project]
name = "rabbitizer"
# Version should be synced with include/common/RabbitizerVersion.h
version = "1.7.2"
version = "1.7.3"
description = "MIPS instruction decoder"
# license = "MIT"
readme = "README.md"

View File

@ -7,8 +7,12 @@ fn main() {
.unwrap()
.filter_map(|g| g.ok())
.collect();
let tables_paths: Vec<std::path::PathBuf> = glob::glob("tables/tables/**/*.inc")
.unwrap()
.filter_map(|g| g.ok())
.collect();
for path in c_paths.iter().chain(&h_paths) {
for path in c_paths.iter().chain(&h_paths).chain(&tables_paths) {
println!("cargo:rerun-if-changed={}", path.to_string_lossy());
}