-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ci: refactor workflows to be OS/distro independent like #3087 Signed-off-by: Kenji Miyake <[email protected]> * add needs Signed-off-by: Kenji Miyake <[email protected]> * add outputs Signed-off-by: Kenji Miyake <[email protected]> Signed-off-by: Kenji Miyake <[email protected]>
- Loading branch information
1 parent
1d492a3
commit 7de7beb
Showing
7 changed files
with
59 additions
and
49 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,32 @@ | ||
name: load-env | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
base-image: | ||
value: ${{ jobs.load-env.outputs.base-image }} | ||
rosdistro: | ||
value: ${{ jobs.load-env.outputs.rosdistro }} | ||
|
||
jobs: | ||
load-env: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
base-image: ${{ steps.set-env.outputs.base-image }} | ||
rosdistro: ${{ steps.set-env.outputs.rosdistro }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Load env | ||
run: | | ||
cat amd64.env | sed -e "s/^\s*//" -e "/^#/d" >> $GITHUB_ENV | ||
if [ "$(uname -m)" = "aarch64" ]; then | ||
cat arm64.env | sed -e "s/^\s*//" -e "/^#/d" >> $GITHUB_ENV | ||
fi | ||
- name: Set env | ||
id: set-env | ||
run: | | ||
echo "base-image=${{ env.base_image }}" >> $GITHUB_OUTPUT | ||
echo "rosdistro=${{ env.rosdistro }}" >> $GITHUB_OUTPUT |
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