forked from web-infra-dev/rspack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'web-infra-dev:main' into main
- Loading branch information
Showing
1,541 changed files
with
41,120 additions
and
23,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
open_collective: rspack | ||
open_collective: rspack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Clean Repository | ||
|
||
inputs: | ||
target: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Git Clean | ||
shell: bash | ||
run: | | ||
git config --system core.longpaths true | ||
rm -rf node_modules | ||
git clean -ffdx -e target | ||
git reset --hard HEAD | ||
- name: Clean Large Directories by Size | ||
if: ${{ !contains(inputs.target, 'windows') }} | ||
shell: bash | ||
run: | | ||
if [ -d "target" ]; then | ||
TARGET_SIZE=$(du -s target | awk '{print $1}') | ||
MAX_SIZE=$((50 * 1024 * 1024)) | ||
echo "MAX_SIZE = $MAX_SIZE" | ||
if [ "$TARGET_SIZE" -gt "$MAX_SIZE" ]; then | ||
echo "`target` directory size is greater than 50GB, deleting..." | ||
rm -rf target | ||
else | ||
echo "`target` directory size is within limits." | ||
fi | ||
fi | ||
- name: Clean Large Directories by Time | ||
if: ${{ contains(inputs.target, 'windows') }} | ||
shell: bash | ||
run: | | ||
if [ -d "target" ]; then | ||
TARGET_CREATION_TIME=$(powershell -Command "(Get-Item 'target').CreationTime") | ||
TWO_WEEKS_AGO=$(date -d '2 weeks ago' +%s) | ||
echo "TARGET_CREATION_TIME = $TARGET_CREATION_TIME" | ||
if [ "$TARGET_CREATION_TIME" -lt "$TWO_WEEKS_AGO" ]; then | ||
echo "'target' directory is older than 2 weeks, deleting..." | ||
rm -rf target | ||
else | ||
echo "'target' directory is within 2 weeks." | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.