Skip to content

Commit e8c33e8

Browse files
Optimize CI
1 parent dc6a6d9 commit e8c33e8

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/ci.yml

+8-13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
tags:
88
- '*'
99
pull_request:
10+
branches:
11+
- main
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: true
1016

1117
permissions:
1218
contents: write
@@ -56,21 +62,10 @@ jobs:
5662
name: unit tests
5763
runs-on: ubuntu-latest
5864
steps:
59-
- name: Remove unnecessary files
60-
run: |
61-
docker rmi `docker images -q`
62-
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d
63-
sudo apt -y autoremove --purge
64-
sudo apt -y autoclean
65-
sudo apt clean
66-
rm -rf "$AGENT_TOOLSDIRECTORY"
67-
df -h
6865
- name: Free Disk Space (Ubuntu)
6966
uses: jlumbroso/free-disk-space@main
70-
# with:
71-
# tool-cache: true
72-
# large-packages: true
73-
# swap-storage: true
67+
with:
68+
large-packages: false
7469
- name: Install Rust
7570
uses: dtolnay/rust-toolchain@stable
7671
- name: Install protoc

0 commit comments

Comments
 (0)