diff --git a/.github/workflows/reusable-test-native.yml b/.github/workflows/reusable-test-native.yml index 55a09176f..9c78bd14f 100644 --- a/.github/workflows/reusable-test-native.yml +++ b/.github/workflows/reusable-test-native.yml @@ -142,7 +142,7 @@ jobs: shell: bash run: | # set up directory - mkdir -p upload/cov/${{ env.UNIQUE_ID }} + mkdir -p upload/cov/${{ env.UNIQUE_NAME }} cd patomic/build # macos needs xcrun to help use xcode to run llvm tools @@ -161,18 +161,18 @@ jobs: # copy over merged coverage output and corresponding binary # use variable because cp does not support globbing in file names lib_files=(libpatomic.*) # matches shared/static lib files and symlinks - cp "${lib_files[0]}" ../../upload/cov/${{ env.UNIQUE_ID }}/patomic.bin - cp default.profdata ../../upload/cov/${{ env.UNIQUE_ID }}/patomic.profdata + cp "${lib_files[0]}" ../../upload/cov/${{ env.UNIQUE_NAME }}/patomic.bin + cp default.profdata ../../upload/cov/${{ env.UNIQUE_NAME }}/patomic.profdata # GitHub issue #65006 on llvm/llvm-project suggests to NOT use -fcoverage-prefix-map # macos runner has AppleClang 14 which doesn't support -fcoverage-compilation-dir # workaround is to store root path to help use coverage directory mappings later cd ../.. - echo "$PWD" >> upload/cov/${{ env.UNIQUE_ID }}/patomic.rootpath + echo "$PWD" >> upload/cov/${{ env.UNIQUE_NAME }}/patomic.rootpath - name: Upload Coverage Results if: env.SKIP_JOB != 'true' && matrix.kind == 'coverage' uses: actions/upload-artifact@v3 with: - name: test-coverage + name: test-coverage-internal path: upload/cov/