From 8d7ac701c2d00df267386f4e94d884f71fa95101 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Sat, 7 Sep 2024 22:25:47 +0200 Subject: [PATCH] try to fix ci --- .github/workflows/main-build.yml | 2 +- .github/workflows/release-build.yml | 12 ++++++------ scripts/sync_resources.sh | 5 +++++ 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100755 scripts/sync_resources.sh diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index 5839b01e1..b017ecd00 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -68,7 +68,7 @@ jobs: steps: # Remove unnecessary files to free up space. Otherwise, we get 'no space left on device.' - uses: data-intuitive/reclaim-the-bytes@v2 - + - uses: actions/checkout@v4 - uses: viash-io/viash-actions/setup@v6 diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 93b6f1eab..6db5b094a 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -13,9 +13,9 @@ jobs: env: s3_bucket: s3://openproblems-data/resources_test/ runs-on: ubuntu-latest - + outputs: - component_matrix: ${{ steps.set_matrix.outputs.components }} + component_matrix: ${{ steps.set_matrix.outputs.matrix }} cache_key: ${{ steps.cache.outputs.cache_key }} steps: @@ -48,7 +48,7 @@ jobs: publish_branch: release full_commit_message: "Deploy for release ${{ github.event.inputs.version_tag }} from ${{ github.sha }}" - - id: ns_list_components + - id: ns_list uses: viash-io/viash-actions/ns-list@v6 with: platform: docker @@ -57,13 +57,13 @@ jobs: - id: set_matrix run: | - echo "components=$(jq -c '[ .[] | + echo "matrix=$(jq -c '[ .[] | { "name": (.functionality.namespace + "/" + .functionality.name), "config": .info.config, "dir": .info.config | capture("^(?.*\/)").dir } - ]' ${{ steps.ns_list_components.outputs.output_file }} )" >> $GITHUB_OUTPUT + ]' ${{ steps.ns_list.outputs.output_file }} )" >> $GITHUB_OUTPUT # phase 2 build: @@ -111,7 +111,7 @@ jobs: src: ${{ matrix.component.dir }} setup: push - ###################################3 + ################################### # phase 3 component_test: needs: [ build, list ] diff --git a/scripts/sync_resources.sh b/scripts/sync_resources.sh new file mode 100755 index 000000000..76e88e4a0 --- /dev/null +++ b/scripts/sync_resources.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e + +viash run src/common/sync_test_resources/config.vsh.yaml