Skip to content

Commit

Permalink
tar distribution-packages
Browse files Browse the repository at this point in the history
avoid broken semantics of upload/download-artefacts-actions
  • Loading branch information
ccwienk committed Feb 27, 2025
1 parent 273147e commit 35083f6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,11 @@ jobs:
cp "${resources_file}" dist/ocm_resources.yaml
echo "ocm_resources=dist/ocm_resources.yaml" >> "${GITHUB_OUTPUT}"
find "${pkg_dir}"
tar czf distribution-packages.tar.gz dist
- uses: actions/upload-artifact@v4
with:
name: distribution-packages
path: dist/
path: distribution-packages.tar.gz

base-component-descriptor:
name: Generate Base-OCM-Component-Descriptor
Expand Down Expand Up @@ -287,7 +288,6 @@ jobs:
uses: actions/download-artifact@v4
with:
name: distribution-packages
path: /tmp/dist
- name: Retrieve Linting Logs
uses: actions/download-artifact@v4
with:
Expand All @@ -305,6 +305,9 @@ jobs:
set -eu
version=${{ needs.version.outputs.version }}
ocm_repo=${{ needs.params.outputs.ocm_repository }}
tar xf distribution-packages.tar.gz -C /tmp
echo "importing base-component-descriptor"
echo "${{ needs.base-component-descriptor.outputs.component-descriptor }}" \
> component-descriptor.yaml
Expand Down Expand Up @@ -377,7 +380,6 @@ jobs:
uses: actions/download-artifact@v4
with:
name: distribution-packages
path: /tmp/dist
- name: lint
run: |
# debug
Expand All @@ -390,6 +392,7 @@ jobs:
cat /tmp/apk.log
exit 1
fi
tar xf distribution-packages.tar.gz -C /tmp
echo "installing linters"
export CFLAGS='-Wno-int-conversion'
if ! pip3 install --upgrade --break-system-packages \
Expand Down Expand Up @@ -437,13 +440,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: distribution-packages
path: /tmp/dist
- name: run-tests
run: |
set -eu
echo "install dependencies for python-packages"
apk add --no-cache $(cat gardener-cicd-libs.apk-packages)
echo "install packages"
tar xf distribution-packages.tar.gz -C /tmp
export CFLAGS='-Wno-int-conversion'
if ! pip3 install --break-system-packages \
--find-links /tmp/dist \
Expand Down Expand Up @@ -487,6 +490,7 @@ jobs:
prebuild-hook: |
echo "${{ needs.version.outputs.setuptools-version }}" | .ci/write-version
build-ctx-artefact: distribution-packages
untar-build-ctx-artefact: distribution-packages.tar.gz
ocm-labels: |
- name: cloud.gardener.cnudie/dso/scanning-hints/package-versions
value:
Expand Down

0 comments on commit 35083f6

Please sign in to comment.