diff --git a/.github/workflows/build_mpich_source.yml b/.github/workflows/build_mpich_source.yml index 69acbd8f597..422bd43502f 100644 --- a/.github/workflows/build_mpich_source.yml +++ b/.github/workflows/build_mpich_source.yml @@ -85,7 +85,7 @@ jobs: make install - name: Tar MPICH installation to preserve permissions for artifact - run: tar -cvf mpich.tar ${{ runner.workspace }}/mpich + run: tar -cvf mpich.tar -C ${{ runner.workspace }} mpich - name: Save MPICH installation artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/build_openmpi_source.yml b/.github/workflows/build_openmpi_source.yml index 94a2540dce8..0e144a0f300 100644 --- a/.github/workflows/build_openmpi_source.yml +++ b/.github/workflows/build_openmpi_source.yml @@ -78,7 +78,7 @@ jobs: make install - name: Tar OpenMPI installation to preserve permissions for artifact - run: tar -cvf openmpi.tar ${{ runner.workspace }}/openmpi + run: tar -cvf openmpi.tar -C ${{ runner.workspace }} openmpi - name: Save OpenMPI installation artifact uses: actions/upload-artifact@v4