-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from xmos/develop
Release v1.1.0 to main
- Loading branch information
Showing
33 changed files
with
236 additions
and
378 deletions.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
@Library('[email protected]') _ | ||
// This file relates to internal XMOS infrastructure and should be ignored by external users | ||
|
||
@Library('[email protected]') _ | ||
|
||
getApproval() | ||
|
||
|
||
pipeline { | ||
agent none | ||
|
||
|
@@ -23,10 +23,15 @@ pipeline { | |
defaultValue: '15.3.0', | ||
description: 'The XTC tools version' | ||
) | ||
string( | ||
name: 'XMOSDOC_VERSION', | ||
defaultValue: '6.1.0', | ||
description: 'The xmosdoc version' | ||
) | ||
} | ||
environment { | ||
REPO = 'lib_board_support' | ||
PYTHON_VERSION = "3.10" | ||
PYTHON_VERSION = "3.12.1" | ||
VENV_DIRNAME = ".venv" | ||
} | ||
|
||
|
@@ -36,60 +41,33 @@ pipeline { | |
label 'linux&&64' | ||
} | ||
stages{ | ||
stage('Checkout and lib checks'){ | ||
stage('Checkout'){ | ||
steps { | ||
println "Stage running on: ${env.NODE_NAME}" | ||
sh "git clone -b v1.2.1 [email protected]:xmos/infr_scripts_py" | ||
sh "git clone -b v1.6.0 [email protected]:xmos/infr_apps" | ||
|
||
dir("${REPO}") { | ||
checkout scm | ||
createVenv() | ||
withVenv { | ||
sh "pip install -e ../infr_scripts_py" | ||
sh "pip install -e ../infr_apps" | ||
|
||
// Grab dependancies before changelog check | ||
withTools(params.TOOLS_VERSION) { | ||
withTools(params.TOOLS_VERSION) { | ||
dir("examples") { | ||
sh "cmake -G \"Unix Makefiles\" -B build" | ||
} | ||
|
||
// installPipfile(false) | ||
withTools(params.TOOLS_VERSION) { | ||
withEnv(["REPO=${REPO}", "XMOS_ROOT=.."]) { | ||
xcoreLibraryChecks("${REPO}", false) | ||
// junit "junit_lib.xml" | ||
} // withEnv | ||
} // withTools | ||
} // Venv | ||
} | ||
} // dir | ||
} // steps | ||
} | ||
stage('Docs') { | ||
environment { XMOSDOC_VERSION = "v5.0" } | ||
stage('Library checks') { | ||
steps { | ||
dir("${REPO}") { | ||
sh "docker pull ghcr.io/xmos/xmosdoc:$XMOSDOC_VERSION" | ||
sh """docker run -u "\$(id -u):\$(id -g)" \ | ||
--rm \ | ||
-v \$(pwd):/build \ | ||
ghcr.io/xmos/xmosdoc:$XMOSDOC_VERSION -v html latex""" | ||
|
||
// Zip and archive doc files | ||
zip dir: "doc/_build/html", zipFile: "${REPO}_docs_html.zip" | ||
archiveArtifacts artifacts: "${REPO}_docs_html.zip" | ||
archiveArtifacts artifacts: "doc/_build/pdf/${REPO}_*.pdf" | ||
} | ||
} | ||
} | ||
stage('Build'){ | ||
runLibraryChecks("${WORKSPACE}/${REPO}", "v2.0.1") | ||
} // steps | ||
} // Library checks | ||
stage('Build examples'){ | ||
steps { | ||
dir("${REPO}") { | ||
dir("${REPO}/examples") { | ||
withVenv { | ||
withTools(params.TOOLS_VERSION) { | ||
sh "cmake -G \"Unix Makefiles\" -B build" | ||
archiveArtifacts artifacts: "build/manifest.txt", allowEmptyArchive: false | ||
sh "xmake -C build -j" | ||
sh "xmake -C build -j 16" | ||
archiveArtifacts artifacts: "**/*.xe", allowEmptyArchive: false | ||
stash name: "xe_files", includes: "**/*.xe" | ||
} | ||
|
@@ -108,10 +86,23 @@ pipeline { | |
} | ||
} | ||
} | ||
stage('Documentation') { | ||
steps { | ||
dir("${REPO}") { | ||
withVenv { | ||
sh "pip install git+ssh://[email protected]/xmos/xmosdoc@v${params.XMOSDOC_VERSION}" | ||
sh 'xmosdoc' | ||
zip zipFile: "${REPO}_docs.zip", archive: true, dir: 'doc/_build' | ||
} // withVenv | ||
} // dir | ||
} // steps | ||
} // Documentation | ||
|
||
} | ||
post { | ||
always{ | ||
dir("${REPO}/tests") { | ||
// No test yet so this is a placeholder | ||
// junit 'results.xml' | ||
} | ||
} | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.