-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Create github workflow for the subtopology autocoder #2794
Open
mosa11aei
wants to merge
6
commits into
nasa:devel
Choose a base branch
from
mosa11aei:action/subtopology-ac
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9e30785
Create github workflow for the subtopology autocoder
mosa11aei b280705
Address suggestions; sbt comes installed
mosa11aei 14d3722
Make bin directory dynamic
mosa11aei f31fd94
Fix some spelling mistakes
mosa11aei 82e3578
FPP v2.1.0a12 (#2795)
bocchino 58604e0
Update spelling
mosa11aei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Runs the subtopology autocoder tool to test the subtopology tool (https://github.com/mosa11aei/fprime-subtopology-tool) | ||
|
||
name: "Subtopology Autocoder Tool Test" | ||
|
||
on: | ||
push: | ||
branches: [ devel, release/** ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ devel, release/** ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
- '.github/actions/spelling/**' | ||
- '.github/ISSUE_TEMPLATE/**' | ||
|
||
jobs: | ||
get-branch: | ||
name: "Get target branch" | ||
uses: ./.github/workflows/reusable-get-pr-branch.yml | ||
with: | ||
target_repository: mosa11aei/fprime-rngLibrary | ||
|
||
subtopology-test: | ||
name: "Subtopology Test" | ||
runs-on: ubuntu-latest | ||
needs: get-branch | ||
steps: | ||
- name: "Checkout target repository" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
repository: mosa11aei/fprime-rngLibrary | ||
ref: ${{ needs.get-branch.outputs.target-branch }} | ||
- name: "Overlay current F´ revision" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
path: ./fprime | ||
fetch-depth: 0 | ||
- uses: ./fprime/.github/actions/setup | ||
with: | ||
location: ./fprime | ||
- name: "Verify CMake is installed" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake | ||
- name: "Get FPP" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
repository: nasa/fpp | ||
path: ./fpp | ||
ref: main | ||
- name: "[fpp] Install sbt" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y apt-transport-https curl gnupg -yqq | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list | ||
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import | ||
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg | ||
mosa11aei marked this conversation as resolved.
Show resolved
Hide resolved
|
||
sudo apt-get update | ||
sudo apt-get install -y sbt default-jre | ||
- name: "Get location of fpp bin" | ||
id: fpp-bin | ||
run: | | ||
echo "BIN_DIR=$(dirname $(which fpp-depend))" >> $GITHUB_OUTPUT | ||
- name: "Install unreleased fpp" | ||
run: | | ||
chmod +x ./fpp/compiler/install | ||
./fpp/compiler/install ${{ steps.fpp-bin.outputs.BIN_DIR}} | ||
- name: "Checkout subtopology tool" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
path: ./fprime-subtopology-tool | ||
repository: mosa11aei/fprime-subtopology-tool | ||
ref: main | ||
- name: "Generate Subtopology Example Build Cache" | ||
working-directory: ./MainDeployment | ||
run: | | ||
fprime-util generate -DFPRIME_SKIP_TOOLS_VERSION_CHECK=ON -DCMAKE_DEBUG_OUTPUT=ON | ||
- name: "Build Example" | ||
working-directory: ./MainDeployment | ||
run: | | ||
fprime-util build -v -j4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Fw/SerializableFile/test/TestSerializable/TestSerializable.fpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Fw { | ||
|
||
@ Test struct | ||
struct Test { | ||
element1: U32 @< Element 1 | ||
element2: I8 @< Element 2 | ||
element3: F64 @< Element 3 | ||
} | ||
|
||
} |
31 changes: 0 additions & 31 deletions
31
Fw/SerializableFile/test/TestSerializable/TestSerializableAi.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Get rid of non native fpp install
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.
@mosa11aei if it were me I would get rid of all the installs, since all those tools come pre-installed on the GitHub runners. This may prevent breakages in the future. Your call.
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.
This specifically relates to something @LeStarch and I talked about today. See #2816 😉