@@ -117,32 +117,31 @@ jobs:
117
117
MALLOC_CONF : " background_thread:true,abort_conf:true,abort:true,junk:true"
118
118
119
119
steps :
120
- - uses : easimon/maximize-build-space@master
121
- with :
122
- remove-dotnet : true
123
- remove-android : true
124
- remove-haskell : true
125
- remove-codeql : true
126
- remove-docker-images : true
127
-
128
120
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
129
121
- uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
122
+ with :
123
+ workspaces : ' . -> /mnt/target'
130
124
131
125
# Update `pg_dump` to the same version as the running PostgreSQL server
132
126
- run : sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v ${{ env.POSTGRES_VERSION }} -i -p
133
127
- run : sudo systemctl start postgresql.service
134
128
- run : sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres'"
135
129
136
- - run : cargo build --tests --workspace
137
- - run : cargo test --workspace
130
+ - run : |
131
+ id
132
+ sudo mkdir /mnt/target
133
+ sudo chown $(id -u):$(id -g) /mnt/target
134
+
135
+ - run : cargo build --tests --workspace --target-dir=/mnt/target
136
+ - run : cargo test --workspace --target-dir=/mnt/target
138
137
139
138
- run : curl -sL https://github.com/mozilla/grcov/releases/download/v${{ env.GRCOV_VERSION }}/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar xjf -
140
139
- run : rustup component add llvm-tools
141
- - run : ./grcov . --binary-path ./ target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" --ignore "target/debug/build/**" -o target/coverage.lcov
140
+ - run : ./grcov . --binary-path /mnt/ target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" --ignore "/mnt/ target/debug/build/**" -o /mnt/ target/coverage.lcov
142
141
143
142
- uses : codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
144
143
with :
145
- files : target/coverage.lcov
144
+ files : /mnt/ target/coverage.lcov
146
145
env :
147
146
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
148
147
0 commit comments