mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2024-12-26 18:14:51 +00:00
Make Rust acknowledge the tables/ folder
This commit is contained in:
parent
5bcd3618e5
commit
5bc9246c05
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 }}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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