Hey,
so I have a private repo (so I cannot share code, so I'll try to keep things at a higher level) for a Rust project. However, while all the tests pass in my Macbook M1 Pro, they fail on GitHub Actions. After noticing this, I tried the same in an old MacBook with Zorin OS and it works.
The error on GitHub Actions is a convergence/numerical error (i.e., the search for an iterative solution does not converge before a BIG number of iterations). It has nothing to do with compilation. It would seem like floating point numbers are treated differently...?
Details of each environment
M1 Macbook Pro
-
cargo test
--> everything works. -
rustup default
-->stable-aarch64-apple-darwin (default)
-
rustup check
-->stable-aarch64-apple-darwin - Up to date : 1.64.0 (a55dd71d5 2022-09-19)
Zorin OS:
-
cargo test
--> everything works. -
rustup default
-->stable-x86_64-unknown-linux-gnu - Up to date : 1.64.0 ...
-
rustup check
-->stable-x86_64-unknown-linux-gnu - Up to date : 1.64.0 ...
GitHub Actions
-
cargo test --verbose
does not work. - rustc 1.64.0 (a55dd71d5 2022-09-19) | cargo 1.64.0 (387270bc7 2022-09-16) | clippy 0.1.64 (a55dd71 2022-09-19)
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update
run: rustup update stable
- name: Run tests
run: cargo test --verbose
Any clues as to what might be happening?
THANKS!!!!