@@ -151,30 +151,22 @@ jobs:
151
151
TEST_DATABASE_URL : postgres://postgres:postgres@localhost/postgres
152
152
RUSTFLAGS : " -D warnings -Cinstrument-coverage"
153
153
MALLOC_CONF : " background_thread:true,abort_conf:true,abort:true,junk:true"
154
- CARGO_TARGET_DIR : /mnt/target
155
154
156
155
steps :
157
156
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
158
157
with :
159
158
persist-credentials : false
160
159
160
+ # Remove the Android SDK to free up space
161
+ - run : sudo rm -rf /usr/local/lib/android
162
+
161
163
- 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 }}'
166
164
167
165
# Update `pg_dump` to the same version as the running PostgreSQL server
168
166
- run : sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v ${POSTGRES_VERSION} -i -p
169
167
- run : sudo systemctl start postgresql.service
170
168
- run : sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres'"
171
169
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
-
178
170
- run : cargo build --tests --workspace
179
171
- run : cargo test --workspace
180
172
0 commit comments