From 6764917005072aed7813506ed49b87572561d255 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Thu, 22 Feb 2024 22:45:55 +0100 Subject: [PATCH 1/5] ci(linux): keep extensions node_modules [skip ci] --- .github/workflows/insider-linux.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index c65f157..a9944ae 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -103,7 +103,9 @@ jobs: - name: Compress vscode artifact run: | - tar -cz --exclude='.build/node' --exclude='**/node_modules' -f vscode.tar.gz vscode + find vscode/* -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path ".build/node" | sort -r | awk 'a!~"^"$0{a=$0;print}' | sort > vscode.txt + find vscode/.build/extensions/node_modules/* | sort -r | awk 'a!~"^"$0{a=$0;print}' | sort >> vscode.txt + tar -czf vscode.tar.gz -T vscode.txt - name: Upload vscode artifact uses: actions/upload-artifact@v3 From 694f5594185817d128c52ea9b65c8984dd9f1dde Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Thu, 22 Feb 2024 23:26:50 +0100 Subject: [PATCH 2/5] ci(linux): keep extensions node_modules [skip ci] --- .github/workflows/insider-linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index a9944ae..f3e8419 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -103,8 +103,8 @@ jobs: - name: Compress vscode artifact run: | - find vscode/* -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path ".build/node" | sort -r | awk 'a!~"^"$0{a=$0;print}' | sort > vscode.txt - find vscode/.build/extensions/node_modules/* | sort -r | awk 'a!~"^"$0{a=$0;print}' | sort >> vscode.txt + find vscode/* -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path ".build/node" > vscode.txt + find vscode/.build/extensions/node_modules/* -type f >> vscode.txt tar -czf vscode.tar.gz -T vscode.txt - name: Upload vscode artifact From 5108f834ffb64daff2d6d0079ad8c4c46801e094 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Fri, 23 Feb 2024 00:16:37 +0100 Subject: [PATCH 3/5] ci(linux): keep dotfiles [skip ci] --- .github/workflows/insider-linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index f3e8419..36fa41c 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -103,8 +103,8 @@ jobs: - name: Compress vscode artifact run: | - find vscode/* -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path ".build/node" > vscode.txt - find vscode/.build/extensions/node_modules/* -type f >> vscode.txt + find vscode -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path ".build/node" > vscode.txt + find vscode/.build/extensions/node_modules -type f >> vscode.txt tar -czf vscode.tar.gz -T vscode.txt - name: Upload vscode artifact From e117bf98d5ffa609c71bfd2d32c1df320703d81e Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Fri, 23 Feb 2024 00:40:52 +0100 Subject: [PATCH 4/5] ci(linux): keep .git [skip ci] --- .github/workflows/insider-linux.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 36fa41c..6837174 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -103,8 +103,9 @@ jobs: - name: Compress vscode artifact run: | - find vscode -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path ".build/node" > vscode.txt + find vscode -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt find vscode/.build/extensions/node_modules -type f >> vscode.txt + echo "vscode/.git" >> vscode.txt tar -czf vscode.tar.gz -T vscode.txt - name: Upload vscode artifact From f4759fb36a5e98e0cce46cbc68537b23c383789e Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Fri, 23 Feb 2024 01:33:26 +0100 Subject: [PATCH 5/5] ci(linux): keep extensions node_modules [skip ci] --- .github/workflows/insider-linux.yml | 4 ++-- .github/workflows/stable-linux.yml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 6837174..dfe6026 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -103,8 +103,8 @@ jobs: - name: Compress vscode artifact run: | - find vscode -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt - find vscode/.build/extensions/node_modules -type f >> vscode.txt + find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt + echo "vscode/.build/extensions/node_modules" >> vscode.txt echo "vscode/.git" >> vscode.txt tar -czf vscode.tar.gz -T vscode.txt diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index f99ca87..37f406f 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -107,7 +107,10 @@ jobs: - name: Compress vscode artifact run: | - tar -cz --exclude='.build/node' --exclude='**/node_modules' -f vscode.tar.gz vscode + find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt + echo "vscode/.build/extensions/node_modules" >> vscode.txt + echo "vscode/.git" >> vscode.txt + tar -czf vscode.tar.gz -T vscode.txt - name: Upload vscode artifact uses: actions/upload-artifact@v3