-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): free disk space to avoid abnormal fail
Signed-off-by: lxl66566 <[email protected]> test mount and delete Signed-off-by: lxl66566 <[email protected]>
- Loading branch information
Showing
7 changed files
with
47 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,8 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Setup sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
call_build_xline: | ||
name: Build and Upload Artifacts | ||
|
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 |
---|---|---|
|
@@ -39,12 +39,9 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Setup sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Prepare release binaries | ||
id: prepare_binaries | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -14,8 +14,15 @@ jobs: | |
run: | ||
shell: bash | ||
env: | ||
SCCACHE_GHA_ENABLED: "on" | ||
container: ghcr.io/xline-kv/build-env:latest | ||
SCCACHE_GHA_ENABLED: "true" | ||
CARGO_INCREMENTAL: 0 # CI will compile all crates from beginning. So disable incremental compile may reduce compile target size. | ||
container: | ||
image: ghcr.io/xline-kv/build-env:latest | ||
volumes: | ||
- /usr/local/lib/android/:/tmp/android/ | ||
- /usr/share/dotnet:/tmp/dotnet | ||
- /opt/ghc:/tmp/ghc | ||
- /usr/lib/firefox:/tmp/firefox | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
|
@@ -34,16 +41,25 @@ jobs: | |
} | ||
name: Tests ${{ matrix.config.name }} | ||
steps: | ||
- name: View free disk space | ||
run: df -h / | ||
|
||
- name: Setup sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Free Disk Space | ||
run: | | ||
rm -rf /tmp/android/* || true | ||
rm -rf /tmp/dotnet/* || true | ||
rm -rf /tmp/ghc/* || true | ||
rm -rf /tmp/firefox/* || true | ||
- name: View free disk space | ||
run: df -h / | ||
|
||
- name: Trailing spaces check | ||
run: ci/scripts/check-trailing-spaces.sh | ||
|
@@ -63,23 +79,23 @@ jobs: | |
- name: Workspace hack check | ||
run: cargo hakari generate --diff && cargo hakari manage-deps --dry-run && cargo hakari verify | ||
|
||
- run: sccache --zero-stats > /dev/null | ||
- run: ${SCCACHE_PATH} --zero-stats > /dev/null | ||
|
||
- name: Clippy ${{ matrix.config.name }} | ||
env: | ||
RUSTFLAGS: ${{ matrix.config.rustflags }} | ||
run: cargo clippy ${{ matrix.config.args }} --all-targets --all-features -- -D warnings | ||
|
||
- name: Sccache stats ${{ matrix.config.name }} | ||
run: sccache --show-stats && sccache --zero-stats > /dev/null | ||
run: ${SCCACHE_PATH} --show-stats && ${SCCACHE_PATH} --zero-stats > /dev/null | ||
|
||
- name: Test ${{ matrix.config.name }} | ||
env: | ||
RUSTFLAGS: ${{ matrix.config.rustflags }} | ||
run: cargo ${{ matrix.config.test }} | ||
|
||
- name: Sccache stats ${{ matrix.config.name }} | ||
run: sccache --show-stats | ||
run: ${SCCACHE_PATH} --show-stats | ||
|
||
- name: Upload coverage to Codecov | ||
if: matrix.config.name == 'Normal' | ||
|
@@ -122,12 +138,8 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Setup sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build xline image | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -16,25 +16,21 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Setup sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
call_build_xline: | ||
name: Build and Upload Artifacts | ||
uses: ./.github/workflows/build_xline.yml | ||
with: | ||
docker_xline_image: 'ghcr.io/xline-kv/build-env:latest' | ||
docker_xline_image: "ghcr.io/xline-kv/build-env:latest" | ||
additional_setup_commands: | | ||
sudo apt-get install -y --force-yes expect | ||
ldd ./xline | ||
ldd ./benchmark | ||
cp ../fixtures/{private,public}.pem . | ||
docker build . -t ghcr.io/xline-kv/xline:latest | ||
docker pull gcr.io/etcd-development/etcd:v3.5.5 | ||
binaries: 'xline,benchmark' | ||
script_name: 'validation_test.sh' | ||
binaries: "xline,benchmark" | ||
script_name: "validation_test.sh" | ||
uploadLogs: true |
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