Skip to content

Commit

Permalink
Try to fix Linux GH action flatc run
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaum committed Oct 12, 2024
1 parent 9a71b9c commit ab458cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cmake python3-dev swig flatbuffers-compilers
packages: cmake python3-dev swig flatbuffers-compiler
version: 1.1
- uses: actions/checkout@v4
with:
Expand All @@ -25,7 +25,7 @@ jobs:
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cmake python3-dev swig flatbuffers-compilers
packages: cmake python3-dev swig flatbuffers-compiler
version: 1.1
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cmake python3-dev swig flatbuffers-compilers
packages: cmake python3-dev swig flatbuffers-compiler
version: 1.1
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions crates/values/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@
// this program. If not, see <https://www.gnu.org/licenses/>.
//

use flatc_rust::Flatc;
use std::path::Path;

fn main() {
println!("cargo:rerun-if-changed=schema/values.fbs");
println!(
"cargo:warning=Compiling with flatc version {}",
Flatc::from_env_path()
.version()
.expect("could not find flatc version")
.version()
);
flatc_rust::run(flatc_rust::Args {
inputs: &[Path::new("schema/values.fbs")],
out_dir: Path::new("../target/flatbuffers/"),
Expand Down

0 comments on commit ab458cf

Please sign in to comment.