Optimize the workflow for dart CI#988
Conversation
Pull Request Test Coverage Report for Build 17137104182Details
💛 - Coveralls |
15a2e31 to
a6b923e
Compare
spacebear21
left a comment
There was a problem hiding this comment.
Concept ACK, I have some minor suggestions
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-13] | ||
| os: [ubuntu-latest, macos-15] |
There was a problem hiding this comment.
I think we could use macos-latest?
| cargo build --features _test-utils --profile release | ||
| cargo run --features _test-utils --profile release --bin uniffi-bindgen -- --library target/release/$LIBNAME --language dart --out-dir dart/lib/ |
There was a problem hiding this comment.
This step appears to be the same regardless of the platform, could likely be moved before the if?
| chmod +x ./scripts/generate_linux.sh | ||
| chmod +x ./scripts/generate_macos.sh | ||
| OS=$(uname -s) | ||
| ARCH=$(uname -m) |
There was a problem hiding this comment.
Looks like ARCH is no longer needed
| if [[ "$OS" == "Darwin" ]]; then | ||
| LIBNAME=$MAC_LIBNAME | ||
| elif [[ "$OS" == "Linux" ]]; then | ||
| LIBNAME=$LINUX_LIBNAME |
There was a problem hiding this comment.
| if [[ "$OS" == "Darwin" ]]; then | |
| LIBNAME=$MAC_LIBNAME | |
| elif [[ "$OS" == "Linux" ]]; then | |
| LIBNAME=$LINUX_LIBNAME | |
| if [[ "$OS" == "Darwin" ]]; then | |
| LIBNAME=libpayjoin_ffi.dylib | |
| elif [[ "$OS" == "Linux" ]]; then | |
| LIBNAME=libpayjoin_ffi.so |
There was a problem hiding this comment.
nit: I'd name this generate_bindings.sh or something more plain english
a6b923e to
a1ee3a8
Compare
| # Skip integration test on macOS due to Docker issues | ||
| run: | | ||
| if [ "${{ matrix.os }}" = "macos-13" ]; then | ||
| if [ "${{ matrix.os }}" = "macos-15" ]; then |
There was a problem hiding this comment.
| if [ "${{ matrix.os }}" = "macos-15" ]; then | |
| if [ "${{ matrix.os }}" = "macos-latest" ]; then |
There was a problem hiding this comment.
i think that macos-latest on matrix.os returns a specific version in this case macos-14 until the end of the month when it will transition to macos-15. not 100% on this though
There was a problem hiding this comment.
nvm you're right
a1ee3a8 to
58836ae
Compare
This is a simplification for the dart build and test workflow for linux and macos
58836ae to
ab7fa2a
Compare
This is a simplification for the dart build and test workflow for linux and macos
This is the part 1 to split up #980 into more manageable chunks
Pull Request Checklist
Please confirm the following before requesting review: