File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 key : mcpp-registry-${{ runner.os }}-0.0.41-${{ hashFiles('pkgs/**/*.lua', 'tests/smoke_compat_*.sh', '.github/workflows/validate.yml') }}
5757 restore-keys : |
5858 mcpp-registry-${{ runner.os }}-0.0.41-
59- mcpp-registry-${{ runner.os }}-
6059 - name : Download mcpp
6160 env :
6261 MCPP_VERSION : " 0.0.41"
6564 "https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/mcpp-${MCPP_VERSION}-linux-x86_64.tar.gz"
6665 tar -xzf mcpp.tar.gz
6766 root="$PWD/mcpp-${MCPP_VERSION}-linux-x86_64"
67+ mkdir -p "$HOME/.mcpp/registry"
68+ cp -a "$root/registry/." "$HOME/.mcpp/registry/"
6869 echo "MCPP=$root/bin/mcpp" >> "$GITHUB_ENV"
6970 echo "MCPP_VENDORED_XLINGS=$root/registry/bin/xlings" >> "$GITHUB_ENV"
7071 echo "$root/bin" >> "$GITHUB_PATH"
@@ -105,7 +106,6 @@ jobs:
105106 key : mcpp-registry-${{ runner.os }}-0.0.41-${{ hashFiles('pkgs/**/*.lua', 'tests/smoke_compat_*.sh', '.github/workflows/validate.yml') }}
106107 restore-keys : |
107108 mcpp-registry-${{ runner.os }}-0.0.41-
108- mcpp-registry-${{ runner.os }}-
109109 - name : Download mcpp
110110 shell : bash
111111 env :
@@ -125,6 +125,8 @@ jobs:
125125 esac
126126
127127 root="$PWD/$MCPP_ROOT"
128+ mkdir -p "$HOME/.mcpp/registry"
129+ cp -a "$root/registry/." "$HOME/.mcpp/registry/"
128130 if [[ "$RUNNER_OS" == "Windows" ]]; then
129131 echo "MCPP=$(cygpath -m "$root/${{ matrix.mcpp }}")" >> "$GITHUB_ENV"
130132 echo "MCPP_VENDORED_XLINGS=$(cygpath -m "$root/${{ matrix.xlings }}")" >> "$GITHUB_ENV"
You can’t perform that action at this time.
0 commit comments