Skip to content

Commit b0ec155

Browse files
committed
CI: Remove Android SDK instead of building in /mnt/target
1 parent 8756a88 commit b0ec155

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -151,30 +151,22 @@ jobs:
151151
TEST_DATABASE_URL: postgres://postgres:postgres@localhost/postgres
152152
RUSTFLAGS: "-D warnings -Cinstrument-coverage"
153153
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
154-
CARGO_TARGET_DIR: /mnt/target
155154

156155
steps:
157156
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
158157
with:
159158
persist-credentials: false
160159

160+
# Remove the Android SDK to free up space
161+
- run: sudo rm -rf /usr/local/lib/android
162+
161163
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
162-
with:
163-
# Ensure that we cache from the right target directory. (See below
164-
# for the details of how and when this gets created.)
165-
workspaces: '. -> ${{ env.CARGO_TARGET_DIR }}'
166164

167165
# Update `pg_dump` to the same version as the running PostgreSQL server
168166
- run: sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v ${POSTGRES_VERSION} -i -p
169167
- run: sudo systemctl start postgresql.service
170168
- run: sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres'"
171169

172-
# Create a working directory on /mnt, which is a larger temporary
173-
# filesystem than /, that we can then point our later commands to.
174-
- run: |
175-
sudo mkdir ${CARGO_TARGET_DIR}
176-
sudo chown $(id -u):$(id -g) ${CARGO_TARGET_DIR}
177-
178170
- run: cargo build --tests --workspace
179171
- run: cargo test --workspace
180172

0 commit comments

Comments
 (0)