Skip to content

S3: Download files in 1GiB chunks to reduce memory pressure. #51

S3: Download files in 1GiB chunks to reduce memory pressure.

S3: Download files in 1GiB chunks to reduce memory pressure. #51

Workflow file for this run

#
# Copyright 2022- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
name: CI
on:
pull_request:
push:
branches:
- main
tags:
- v*
env:
DOCKER_CACHE_DIR: github_actions_cache
DEPENDENCIES_VERSION: 'v2024-04-22' # Make sure this matches DEPENDENCIES.
jobs:
Build:
strategy:
fail-fast: true
matrix:
include:
- buildTarget: debian12
buildType: Release
# - target: debian12
# buildType: Debug
- buildTarget: ubuntu20.04
buildType: Release
# - buildTarget: ubuntu20.04
# buildType: Debug
- buildTarget: ubuntu22.04
buildType: Release
# - buildTarget: ubuntu22.04
# buildType: Debug
# - buildTarget: ubi9
# buildType: Release
# - buildTarget: ubi9
# buildType: Debug
runs-on: ubuntu-latest
env:
DOCKER_BUILD_TARGET: ${{ matrix.buildTarget }}
CMAKE_BUILD_TYPE: ${{ matrix.buildType }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Ensure we can run `git describe`.
# Related issue:
# https://github.com/actions/checkout/issues/1467
fetch-tags: ${{ ! contains(github.ref, 'refs/tags/') }} # Only fetch the tag if we're not being triggered by a tag.
fetch-depth: 50
- name: Cache GRPC Build (Restore)
id: load-grpc-cache
uses: actions/cache/restore@v4
with:
path: ${{ env.DOCKER_CACHE_DIR }}
key: dependencies-${{ matrix.buildTarget }}-${{ matrix.buildType }}-${{ env.DEPENDENCIES_VERSION }}
- name: Build or Cache GRPC
run: |
${PWD}/.github/build-or-cache-grpc.sh
- name: Cache GRPC Build (Save)
if: ${{ steps.load-grpc-cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
with:
path: ${{ env.DOCKER_CACHE_DIR }}
key: dependencies-${{ matrix.buildTarget }}-${{ matrix.buildType }}-${{ env.DEPENDENCIES_VERSION }}
- name: Build GEDS
run: |
export GITHUB_TAG=$(git describe --tags --match "v*")
${PWD}/.github/build-geds.sh
- name: Upload release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: github_artifacts/*