From 5d88ff5453ed1826aeb4f819586e2b7f36e25e9d Mon Sep 17 00:00:00 2001 From: maxirmx Date: Mon, 8 Jul 2024 16:08:33 +0300 Subject: [PATCH] ... fix --- .github/actions/test-set-1/action.yml | 11 +++++++++-- .github/workflows/alpine.yml | 2 ++ .github/workflows/macos.yml | 2 ++ .github/workflows/ubuntu.yml | 2 ++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/actions/test-set-1/action.yml b/.github/actions/test-set-1/action.yml index 44373752..805f23f6 100644 --- a/.github/actions/test-set-1/action.yml +++ b/.github/actions/test-set-1/action.yml @@ -25,6 +25,13 @@ name: 'Test: Package metanorma' description: 'Test: Package metanorma using locally deployed tebako gem' +inputs: + upload: + description: 'Upload arfifacts for tests on other OS version' + required: true + type: boolean + default: false + runs: using: "composite" steps: @@ -42,12 +49,12 @@ runs: RUBY_VER=${{ matrix.package_ruby_ver }} tests/scripts/functional-tests.sh - name: Strip tebako test packages - if: ${{ !contains(matrix.os, 'macos') }} + if: ${{ !contains(matrix.os, 'macos') }} && ${{ inputs.upload }} shell: bash run: strip *-package - name: Upload tebako test packages - if: ${{ matrix.package_ruby_ver == env.RUBY_VER && env.CC == 'clang' && matrix.os != 'macos-14' }} + if: ${{ inputs.upload }} uses: actions/upload-artifact@v4 with: name: test-packages diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index c5fc3aaf..111f4ae6 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -140,6 +140,8 @@ jobs: - name: Run test set 1 uses: ./.github/actions/test-set-1 + with: + upload: matrix.package_ruby_ver == '3.1.6' && matrix.env.CC == 'gcc' tests-2: needs: setup diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 2752fcca..57704e96 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -119,6 +119,8 @@ jobs: - name: Run test set 1 uses: ./.github/actions/test-set-1 + with: + upload: matrix.package_ruby_ver == '3.1.6' && matrix.ruby_ver == '3.1.6' && matrix.os == 'macos-12' tests-2: needs: setup diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index d90b16ed..0b2013aa 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -131,6 +131,8 @@ jobs: - name: Run test set 1 uses: ./.github/actions/test-set-1 + with: + upload: false tests-2: needs: setup