File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 - uses : actions/checkout@v4
5252 - name : Download mcpp
5353 env :
54- MCPP_VERSION : " 0.0.38 "
54+ MCPP_VERSION : " 0.0.40 "
5555 run : |
5656 curl -L -fsS -o mcpp.tar.gz \
5757 "https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/mcpp-${MCPP_VERSION}-linux-x86_64.tar.gz"
Original file line number Diff line number Diff line change 1+ .xlings-index-cache.json
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ package = {
1010 xpm = {
1111 linux = {
1212 deps = {
13- " python@latest" ,
13+ " xim: python@latest" ,
1414 },
1515 [" 1.17.0" ] = {
1616 url = " https://xorg.freedesktop.org/releases/individual/lib/libxcb-1.17.0.tar.xz" ,
Original file line number Diff line number Diff line change @@ -27,14 +27,16 @@ link_xpkgs() {
2727 local src=" $1 "
2828 [[ -d " $src " ]] || return 0
2929 find " $src " -mindepth 1 -maxdepth 1 -type d | while read -r pkg; do
30+ [[ " $( basename " $pkg " ) " == compat-x-* ]] && continue
3031 ln -s " $pkg " " $MCPP_HOME /registry/data/xpkgs/$( basename " $pkg " ) " 2> /dev/null || true
3132 done
3233}
3334link_xpkgs " $SMOKE_XPKGS_DIR "
3435link_xpkgs " $USER_MCPP /registry/data/xpkgs"
3536if [[ -d " $USER_MCPP /registry/data/xim-pkgindex" ]]; then
36- mkdir -p " $MCPP_HOME /registry/data"
37- ln -s " $USER_MCPP /registry/data/xim-pkgindex" " $MCPP_HOME /registry/data/xim-pkgindex" 2> /dev/null || true
37+ mkdir -p " $MCPP_HOME /registry/data/xim-pkgindex"
38+ cp -a " $USER_MCPP /registry/data/xim-pkgindex/." " $MCPP_HOME /registry/data/xim-pkgindex/" 2> /dev/null || true
39+ rm -f " $MCPP_HOME /registry/data/xim-pkgindex/.xlings-index-cache.json"
3840fi
3941if [[ -d " $USER_MCPP /registry/bin" ]]; then
4042 mkdir -p " $MCPP_HOME /registry"
Original file line number Diff line number Diff line change @@ -26,14 +26,16 @@ link_xpkgs() {
2626 local src=" $1 "
2727 [[ -d " $src " ]] || return 0
2828 find " $src " -mindepth 1 -maxdepth 1 -type d | while read -r pkg; do
29+ [[ " $( basename " $pkg " ) " == compat-x-* ]] && continue
2930 ln -s " $pkg " " $MCPP_HOME /registry/data/xpkgs/$( basename " $pkg " ) " 2> /dev/null || true
3031 done
3132}
3233link_xpkgs " $SMOKE_XPKGS_DIR "
3334link_xpkgs " $USER_MCPP /registry/data/xpkgs"
3435if [[ -d " $USER_MCPP /registry/data/xim-pkgindex" ]]; then
35- mkdir -p " $MCPP_HOME /registry/data"
36- ln -s " $USER_MCPP /registry/data/xim-pkgindex" " $MCPP_HOME /registry/data/xim-pkgindex" 2> /dev/null || true
36+ mkdir -p " $MCPP_HOME /registry/data/xim-pkgindex"
37+ cp -a " $USER_MCPP /registry/data/xim-pkgindex/." " $MCPP_HOME /registry/data/xim-pkgindex/" 2> /dev/null || true
38+ rm -f " $MCPP_HOME /registry/data/xim-pkgindex/.xlings-index-cache.json"
3739fi
3840if [[ -d " $USER_MCPP /registry/bin" ]]; then
3941 mkdir -p " $MCPP_HOME /registry"
Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ if [[ -z "$MCPP_BIN" || ! -x "$MCPP_BIN" ]]; then
1414fi
1515
1616TMP=" $( mktemp -d) "
17- trap ' rm -rf "$TMP"' EXIT
17+ if [[ " ${MCPP_INDEX_KEEP_SMOKE_TMP:- 0} " == " 1" ]]; then
18+ echo " KEEP: $TMP "
19+ else
20+ trap ' rm -rf "$TMP"' EXIT
21+ fi
1822SMOKE_CACHE_DIR=" ${MCPP_INDEX_SMOKE_CACHE_DIR:- } "
1923SMOKE_XPKGS_DIR=" ${MCPP_INDEX_SMOKE_XPKGS_DIR:- } "
2024
@@ -27,14 +31,16 @@ link_xpkgs() {
2731 local src=" $1 "
2832 [[ -d " $src " ]] || return 0
2933 find " $src " -mindepth 1 -maxdepth 1 -type d | while read -r pkg; do
34+ [[ " $( basename " $pkg " ) " == compat-x-* ]] && continue
3035 ln -s " $pkg " " $MCPP_HOME /registry/data/xpkgs/$( basename " $pkg " ) " 2> /dev/null || true
3136 done
3237}
3338link_xpkgs " $SMOKE_XPKGS_DIR "
3439link_xpkgs " $USER_MCPP /registry/data/xpkgs"
3540if [[ -d " $USER_MCPP /registry/data/xim-pkgindex" ]]; then
36- mkdir -p " $MCPP_HOME /registry/data"
37- ln -s " $USER_MCPP /registry/data/xim-pkgindex" " $MCPP_HOME /registry/data/xim-pkgindex" 2> /dev/null || true
41+ mkdir -p " $MCPP_HOME /registry/data/xim-pkgindex"
42+ cp -a " $USER_MCPP /registry/data/xim-pkgindex/." " $MCPP_HOME /registry/data/xim-pkgindex/" 2> /dev/null || true
43+ rm -f " $MCPP_HOME /registry/data/xim-pkgindex/.xlings-index-cache.json"
3844fi
3945if [[ -d " $USER_MCPP /registry/bin" ]]; then
4046 mkdir -p " $MCPP_HOME /registry"
Original file line number Diff line number Diff line change @@ -31,14 +31,16 @@ link_xpkgs() {
3131 local src=" $1 "
3232 [[ -d " $src " ]] || return 0
3333 find " $src " -mindepth 1 -maxdepth 1 -type d | while read -r pkg; do
34+ [[ " $( basename " $pkg " ) " == compat-x-* ]] && continue
3435 ln -s " $pkg " " $MCPP_HOME /registry/data/xpkgs/$( basename " $pkg " ) " 2> /dev/null || true
3536 done
3637}
3738link_xpkgs " $SMOKE_XPKGS_DIR "
3839link_xpkgs " $USER_MCPP /registry/data/xpkgs"
3940if [[ -d " $USER_MCPP /registry/data/xim-pkgindex" ]]; then
40- mkdir -p " $MCPP_HOME /registry/data"
41- ln -s " $USER_MCPP /registry/data/xim-pkgindex" " $MCPP_HOME /registry/data/xim-pkgindex" 2> /dev/null || true
41+ mkdir -p " $MCPP_HOME /registry/data/xim-pkgindex"
42+ cp -a " $USER_MCPP /registry/data/xim-pkgindex/." " $MCPP_HOME /registry/data/xim-pkgindex/" 2> /dev/null || true
43+ rm -f " $MCPP_HOME /registry/data/xim-pkgindex/.xlings-index-cache.json"
4244fi
4345if [[ -d " $USER_MCPP /registry/bin" ]]; then
4446 mkdir -p " $MCPP_HOME /registry"
You can’t perform that action at this time.
0 commit comments