-
Notifications
You must be signed in to change notification settings - Fork 1
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 #4 from LCAS/src_dir
several improvements of workflow
- Loading branch information
Showing
8 changed files
with
67 additions
and
10 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 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,15 @@ | ||
#!/bin/bash | ||
|
||
|
||
function add_config_if_not_exist { | ||
if ! grep -F -q "$1" $HOME/.bashrc; then | ||
echo "$1" >> $HOME/.bashrc | ||
fi | ||
} | ||
|
||
add_config_if_not_exist "source /opt/ros/humble/setup.bash" | ||
LOCAL_SETUP_FILE=`pwd`/install/setup.bash | ||
add_config_if_not_exist "if [ -r $LOCAL_SETUP_FILE ]; then source $LOCAL_SETUP_FILE; fi" | ||
|
||
source /opt/ros/humble/setup.bash | ||
colcon build --symlink-install --continue-on-error |
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,9 @@ | ||
./LICENSE | ||
./README.md | ||
devel/ | ||
log/ | ||
build/ | ||
bin/ | ||
lib/ | ||
install/ | ||
*~ |
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,28 @@ | ||
name: 'devcontainer CI' | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_devcontainer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout from github | ||
uses: actions/checkout@v3 | ||
- name: extract the github reference | ||
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
- name: "image name from repo name" | ||
id: docker_image_name | ||
run: echo "docker_image=${{ github.repository }}" | tr '[:upper:]' '[:lower:]' |sed 's/[^0-9,a-z,A-Z,=,_,\/]/-/g' >>${GITHUB_OUTPUT} | ||
- name: Build and run dev container task | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: lcas.lincoln.ac.uk/devcontainer/${{ steps.docker_image_name.outputs.docker_image }} | ||
push: never | ||
imageTag: ${{ env.BRANCH }} | ||
#runCmd: "bash .devcontainer/run-ci.sh" |
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,8 +1,9 @@ | ||
devel/ | ||
logs/ | ||
log/ | ||
build/ | ||
bin/ | ||
lib/ | ||
install/ | ||
msg_gen/ | ||
srv_gen/ | ||
msg/*Action.msg | ||
|
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