Skip to content

Commit b64ea49

Browse files
committed
mnt take two
1 parent 021ea63 commit b64ea49

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,32 +117,31 @@ jobs:
117117
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
118118

119119
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-
128120
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
129121
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
122+
with:
123+
workspaces: '. -> /mnt/target'
130124

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

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
138137

139138
- run: curl -sL https://github.com/mozilla/grcov/releases/download/v${{ env.GRCOV_VERSION }}/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar xjf -
140139
- 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
142141

143142
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
144143
with:
145-
files: target/coverage.lcov
144+
files: /mnt/target/coverage.lcov
146145
env:
147146
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
148147

0 commit comments

Comments
 (0)