Skip to content

Commit

Permalink
turn on build images
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
  • Loading branch information
M. Fatih Cırıt committed Feb 20, 2024
1 parent f01888c commit 581707f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
7 changes: 1 addition & 6 deletions .github/actions/free-disk-space/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
tool-cache: true

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
Expand All @@ -27,8 +27,3 @@ runs:
large-packages: true
docker-images: true
swap-storage: false

- name: Show disk space
run: |
df -h
shell: bash
40 changes: 20 additions & 20 deletions .github/workflows/build-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,26 @@ jobs:
- name: Free disk space
uses: ./.github/actions/free-disk-space

# - 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: Build 'autoware-universe'
# uses: ./.github/actions/docker-build-and-push
# with:
# bake-target: autoware-universe
# build-args: |
# *.platform=linux/amd64
# *.args.ROS_DISTRO=${{ env.rosdistro }}
# *.args.BASE_IMAGE=${{ env[format('{0}', matrix.base_image_env)] }}
# *.args.PREBUILT_BASE_IMAGE=${{ env.prebuilt_base_image }}
# *.args.SETUP_ARGS=${{ matrix.setup-args }}
# tag-prefix: ${{ env.rosdistro }}-
# tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
# allow-push: false
- 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: Build 'autoware-universe'
uses: ./.github/actions/docker-build-and-push
with:
bake-target: autoware-universe
build-args: |
*.platform=linux/amd64
*.args.ROS_DISTRO=${{ env.rosdistro }}
*.args.BASE_IMAGE=${{ env[format('{0}', matrix.base_image_env)] }}
*.args.PREBUILT_BASE_IMAGE=${{ env.prebuilt_base_image }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
tag-prefix: ${{ env.rosdistro }}-
tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
allow-push: false

- name: Show disk space
run: |
Expand Down

0 comments on commit 581707f

Please sign in to comment.