mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-01 08:59:40 +00:00
commit
8659624f30
2
.github/workflows/make.yml
vendored
2
.github/workflows/make.yml
vendored
@ -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]
|
||||
|
4
.github/workflows/publish_crate.yml
vendored
4
.github/workflows/publish_crate.yml
vendored
@ -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 }}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user