Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
cache: maven
- name: Build with Maven
run: ./mvnw -B clean verify --file pom.xml
- name: Upload SysML Library .kpar files
uses: actions/upload-artifact@v5
with:
name: sysml-library-kpar
path: sysml.library/output/*.kpar
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure() # always run even if the previous step fails
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,40 @@ jobs:
run: ./mvnw -B deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password
- name: Upload SysML Library .kpar files
uses: actions/upload-artifact@v5
with:
name: sysml-library-kpar
path: sysml.library/output/*.kpar

release:
name: Release
runs-on: ubuntu-latest
needs: [build]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
permissions:
# Use to sign the release artifacts
id-token: write
# Used to upload release artifacts
contents: write
# Used to generate artifact attestation
attestations: write
steps:
- uses: actions/download-artifact@v6
with:
name: sysml-library-kpar
path: kpars
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v3
with:
subject-path: 'kpars/*.kpar'
- name: Create a release
uses: softprops/action-gh-release@v2
with:
make_latest: true
files: |
kpars/*
overwrite_files: false
body:
append_body: true
name: ${{ github.event.inputs.tag_name || github.event.release.tag_name }} - SysML v2 Pilot Implementation
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ dependency-reduced-pom.xml
# MacOS Finder
.DS_Store

# Built libraries
*.kpar
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<junit.version>3.5.3</junit.version>
<asciidoctor.maven.plugin.version>3.2.0</asciidoctor.maven.plugin.version>
<asciidoctorj.pdf.version>2.3.19</asciidoctorj.pdf.version>
<sysand-maven-plugin.version>0.0.6</sysand-maven-plugin.version>
</properties>

<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -293,6 +294,23 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.sensmetry</groupId>
<artifactId>sysand-maven-plugin</artifactId>
<version>${sysand-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>build-kpar</goal>
</goals>
</execution>
</executions>
<configuration>
<workspacePath>${maven.multiModuleProjectDirectory}/sysml.library</workspacePath>
<outputPath>${maven.multiModuleProjectDirectory}/sysml.library/output</outputPath>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down
64 changes: 64 additions & 0 deletions sysml.library/.workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"projects": [
{
"path": "Domain Libraries/Analysis",
"iris": [
"urn:kpar:SysML-Analysis-Library"
]
},
{
"path": "Domain Libraries/Cause and Effect",
"iris": [
"urn:kpar:SysML-Cause-and-Effect-Library"
]
},
{
"path": "Domain Libraries/Geometry",
"iris": [
"urn:kpar:SysML-Geometry-Library"
]
},
{
"path": "Domain Libraries/Metadata",
"iris": [
"urn:kpar:SysML-Metadata-Library"
]
},
{
"path": "Domain Libraries/Quantities and Units",
"iris": [
"urn:kpar:SysML-Quantities-and-Units-Library"
]
},
{
"path": "Domain Libraries/Requirement Derivation",
"iris": [
"urn:kpar:SysML-Requirement-Derivation-Library"
]
},
{
"path": "Kernel Libraries/Kernel Data Type Library",
"iris": [
"urn:kpar:Kernel-Data-Type-Library"
]
},
{
"path": "Kernel Libraries/Kernel Function Library",
"iris": [
"urn:kpar:Kernel-Function-Library"
]
},
{
"path": "Kernel Libraries/Kernel Semantic Library",
"iris": [
"urn:kpar:Kernel-Semantic-Library"
]
},
{
"path": "Systems Library",
"iris": [
"urn:kpar:SysML-Systems-Library"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"index": {
"DerivationConnections": "DerivationConnections.sysml",
"RequirementsDerivation": "RequirementsDerivation.sysml"
"RequirementDerivation": "RequirementDerivation.sysml"
},
"created": "2025-03-13T00:00:00Z",
"metamodel": "https://www.omg.org/spec/SysML/20250201"
Expand Down
2 changes: 1 addition & 1 deletion sysml.library/Systems Library/.meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"index": {
"Actions": "Actions.sysml",
"Allocations": "Allocations.sysml",
"AnalysisCases": "AnalysisCase.sysml",
"AnalysisCases": "AnalysisCases.sysml",
"Attributes": "Attributes.sysml",
"Calculations": "Calculations.sysml",
"Cases": "Cases.sysml",
Expand Down