-
Notifications
You must be signed in to change notification settings - Fork 97
Fix rust / generate artifacts / python workflows [OI-3062]
#1485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
a6af6e5
e17e97e
fa2abfd
bbaae69
5bfc6a6
aac3df7
77ddac1
7163a22
c2c7cd1
f73ed78
604b832
aaee868
140417a
e71563f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,17 +64,22 @@ jobs: | |
|
|
||
| build: | ||
| name: Build binaries | ||
| needs: [ lint, test ] | ||
| needs: [lint, test] | ||
| strategy: | ||
| matrix: | ||
| os: | ||
| - ubuntu-20.04 | ||
| - ubuntu-24.04 | ||
| - macos-13 | ||
| - windows-2022 | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup cmake | ||
| uses: jwlawson/actions-setup-cmake@v2 | ||
| with: | ||
| cmake-version: "3.31.2" | ||
|
|
||
|
Comment on lines
+78
to
+82
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pinned to this version because why not?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the minimum CMake version used anywhere right now should be 3.13. So maybe the solution is rather to update this repo's demands?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue occurs here I don't have enough motivation to investigate/fix that today 😆
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going to merge this PR as it is, I created this ticket to fix the public libswiftnav repo and swiftnav-rs separately https://swift-nav.atlassian.net/browse/OI-3100 |
||
| - run: ./scripts/ci_prepare_rust.bash | ||
| shell: bash | ||
|
|
||
|
|
@@ -104,7 +109,7 @@ jobs: | |
|
|
||
| registry: | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| needs: [ build ] | ||
| needs: [build] | ||
| name: Publish rust release to package-registry | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
@@ -123,5 +128,3 @@ jobs: | |
| token: ${{ secrets.GH_TOKEN }} | ||
| gh-name: ${{ secrets.GH_NAME }} | ||
| gh-email: ${{ secrets.GH_EMAIL }} | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ fn test_(((s.suite_name|snake_case)))() | |
| match &sbp_msg { | ||
| sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { | ||
| let msg_type = msg.message_type().unwrap(); | ||
| assert_eq!( msg_type, (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg_type); | ||
| assert_eq!( msg_type, (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {msg_type}"); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. msg_type moved in between the curly braces to fix all lints in automatically generated tests |
||
| let sender_id = msg.sender_id().unwrap(); | ||
| assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); | ||
| ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) | ||
|
|
@@ -98,7 +98,7 @@ fn test_json2sbp_(((s.suite_name|snake_case)))() | |
| match &sbp_msg { | ||
| sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { | ||
| let msg_type = msg.message_type().unwrap(); | ||
| assert_eq!( msg_type, (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg_type); | ||
| assert_eq!( msg_type, (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {msg_type}"); | ||
| let sender_id = msg.sender_id().unwrap(); | ||
| assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); | ||
| ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) | ||
|
|
@@ -142,7 +142,7 @@ fn test_sbp2json_(((s.suite_name|snake_case)))() | |
| match &sbp_msg { | ||
| sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { | ||
| let msg_type = msg.message_type().unwrap(); | ||
| assert_eq!( msg_type, (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg_type); | ||
| assert_eq!( msg_type, (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {msg_type}"); | ||
| let sender_id = msg.sender_id().unwrap(); | ||
| assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); | ||
| ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this workflow can run on anything since it's using a container below