Skip to content

Commit

Permalink
generalizing rosdep lists
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Sep 16, 2023
1 parent e99f5c1 commit 7d1eb2a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ set -e
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR

YAML_FILE=$1
LIST=$1
VARIANT=$2
PACKAGE_NAME=$3
WORKSPACE=/tmp/workspace
ARTIFACTS_FOLDER=/tmp/artifacts
IDX_FILE=$ARTIFACTS_FOLDER/idx.txt

YAML_FILE=$LIST.yaml

sudo apt-get -y install dpkg-dev

ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
Expand Down Expand Up @@ -81,7 +83,7 @@ echo "$0: catking reported following topological build order:"
echo "$BUILD_ORDER"
echo ""

ROSDEP_FILE="$ARTIFACTS_FOLDER/generated_$ARCH.yaml"
ROSDEP_FILE="$ARTIFACTS_FOLDER/generated_$LIST_$ARCH.yaml"

cat $ROSDEP_FILE

Expand Down
4 changes: 3 additions & 1 deletion .ci/get_build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ trap 'echo "$0: \"${last_command}\" command failed with exit code $?, log:" && c

DEBUG=false

YAML_FILE=$1
LIST=$1
VARIANT=$2
ARCH=$3
WORKSPACE=/tmp/workspace
ARTIFACTS_FOLDER=/tmp/artifacts

YAML_FILE=$LIST.yaml

./.ci_scripts/package_build/add_ros_ppa.sh >> /tmp/log.txt 2>&1

# curl https://ctu-mrs.github.io/ppa-$VARIANT/add_ppa.sh 2>> /tmp/log.txt | bash >> /tmp/log.txt 2>&1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stable_mrs_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
mkdir -p /tmp/artifacts
mkdir -p /tmp/artifacts/metarepositories
touch /tmp/artifacts/generated_amd64.yaml
touch /tmp/artifacts/generated_mrs_amd64.yaml
touch /tmp/artifacts/compiled.txt
echo "0" >> /tmp/artifacts/idx.txt
- name: Save artifacts
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: generate
run: |
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs.yaml stable amd64)
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs stable amd64)
cat /tmp/log.txt
echo "packages=$JOB_STRATEGY_MATRIX" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: build
run: |
.ci/build.sh mrs.yaml stable "${{ matrix.job }}"
.ci/build.sh mrs stable "${{ matrix.job }}"
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stable_mrs_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
mkdir -p /tmp/artifacts
mkdir -p /tmp/artifacts/metarepositories
touch /tmp/artifacts/generated_arm64.yaml
touch /tmp/artifacts/generated_mrs_arm64.yaml
touch /tmp/artifacts/compiled.txt
echo "0" >> /tmp/artifacts/idx.txt
- name: Save artifacts
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: generate
run: |
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs.yaml stable arm64)
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs stable arm64)
cat /tmp/log.txt
echo "packages=$JOB_STRATEGY_MATRIX" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:

# Produce a binary artifact and place it in the mounted volume
run: |
/tmp/repository/.ci/build.sh mrs.yaml stable "${{ matrix.job }}"
/tmp/repository/.ci/build.sh mrs stable "${{ matrix.job }}"
- name: Save artifacts
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unstable_mrs_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
mkdir -p /tmp/artifacts
mkdir -p /tmp/artifacts/metarepositories
touch /tmp/artifacts/generated_amd64.yaml
touch /tmp/artifacts/generated_mrs_amd64.yaml
touch /tmp/artifacts/compiled.txt
echo "0" >> /tmp/artifacts/idx.txt
- name: Save artifacts
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: generate
run: |
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs.yaml unstable amd64)
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs unstable amd64)
cat /tmp/log.txt
echo "packages=$JOB_STRATEGY_MATRIX" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: build
run: |
.ci/build.sh mrs.yaml unstable "${{ matrix.job }}"
.ci/build.sh mrs unstable "${{ matrix.job }}"
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unstable_mrs_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
mkdir -p /tmp/artifacts
mkdir -p /tmp/artifacts/metarepositories
touch /tmp/artifacts/generated_arm64.yaml
touch /tmp/artifacts/generated_mrs_arm64.yaml
touch /tmp/artifacts/compiled.txt
echo "0" >> /tmp/artifacts/idx.txt
- name: Save artifacts
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: generate
run: |
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs.yaml unstable arm64)
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh mrs unstable arm64)
cat /tmp/log.txt
echo "packages=$JOB_STRATEGY_MATRIX" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:

# Produce a binary artifact and place it in the mounted volume
run: |
/tmp/repository/.ci/build.sh mrs.yaml unstable "${{ matrix.job }}"
/tmp/repository/.ci/build.sh mrs unstable "${{ matrix.job }}"
- name: Save artifacts
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unstable_thirdparty_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: |
mkdir -p /tmp/artifacts
mkdir -p /tmp/artifacts/metarepositories
touch /tmp/artifacts/generated_amd64.yaml
touch /tmp/artifacts/generated_thirdparty_amd64.yaml
touch /tmp/artifacts/compiled.txt
echo "0" >> /tmp/artifacts/idx.txt
- name: Save artifacts
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: generate
run: |
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh thirdparty.yaml unstable amd64)
JOB_STRATEGY_MATRIX=$(./.ci/get_build_matrix.sh thirdparty unstable amd64)
cat /tmp/log.txt
echo "packages=$JOB_STRATEGY_MATRIX" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
token: ${{ secrets.PUSH_TOKEN }}
- id: build
run: |
.ci/build.sh thirdparty.yaml unstable "${{ matrix.job }}"
.ci/build.sh thirdparty unstable "${{ matrix.job }}"
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 7d1eb2a

Please sign in to comment.