diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index 3f70c96..22647a3 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -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] diff --git a/.github/workflows/publish_crate.yml b/.github/workflows/publish_crate.yml index 7e79547..94505eb 100644 --- a/.github/workflows/publish_crate.yml +++ b/.github/workflows/publish_crate.yml @@ -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 }} diff --git a/Cargo.toml b/Cargo.toml index fef3f81..ddd4159 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] 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 diff --git a/include/common/RabbitizerVersion.h b/include/common/RabbitizerVersion.h index e44fca1..f161379 100644 --- a/include/common/RabbitizerVersion.h +++ b/include/common/RabbitizerVersion.h @@ -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) diff --git a/pyproject.toml b/pyproject.toml index a18c685..1f3bc85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/rust/build.rs b/rust/build.rs index 00f26c5..826ac1f 100644 --- a/rust/build.rs +++ b/rust/build.rs @@ -7,8 +7,12 @@ fn main() { .unwrap() .filter_map(|g| g.ok()) .collect(); + let tables_paths: Vec = 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()); }