Skip to content

Commit

Permalink
Hack as flatdata::generate is not concurrency-safe
Browse files Browse the repository at this point in the history
`flatdata::generate` (see: `lib/src/generator.rs`) uses `pip` to install
the flatdata generator. Concurrent calls to build it from source cause
it to fail.

Signed-off-by: Eike S R <eike.roehrs@gmail.com>
  • Loading branch information
Eike S R committed Apr 26, 2024
1 parent b4f1cc7 commit 1678f6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
# use generator from source
export FLATDATA_GENERATOR_PATH=${PWD}/flatdata-generator
cd flatdata-rs
cargo build --all-targets
cargo build --all-targets --all-features
cargo build --all-targets -j 1
cargo build --all-targets --all-features -j 1
- name: Run tests
run: |
# use generator from source
export FLATDATA_GENERATOR_PATH=${PWD}/flatdata-generator
cd flatdata-rs
cargo test --all-targets
cargo test --all-targets --all-features
cargo test --all-targets -j 1
cargo test --all-targets --all-features -j 1

0 comments on commit 1678f6d

Please sign in to comment.