rm build dir before testing in CI

This commit is contained in:
Max Howell 2023-12-20 15:37:18 +00:00
parent 9342928266
commit 85c274417e

View file

@ -49,10 +49,10 @@ jobs:
- os: ["self-hosted", "macOS", "ARM64"] - os: ["self-hosted", "macOS", "ARM64"]
name: ² name: ²
- os: ["self-hosted", "linux", "ARM64"] - os: ["self-hosted", "linux", "ARM64"]
name: Lnx·ARM64 name: '*nix·ARM64'
- os: { group: "linux-x86-64" } - os: { group: "linux-x86-64" }
container: debian:buster-slim container: debian:buster-slim
name: Lnx·x64 name: '*nix64'
runs-on: ${{ matrix.platform.os }} runs-on: ${{ matrix.platform.os }}
container: ${{ matrix.platform.container }} container: ${{ matrix.platform.container }}
env: env:
@ -80,6 +80,12 @@ jobs:
pkg: ${{ matrix.pkg }} pkg: ${{ matrix.pkg }}
if: steps.build.outputs.pkgspec if: steps.build.outputs.pkgspec
# prevent tests passing because the build directory is still there
- name: wipe builds directory
run: |
test -d builds
rm -rf builds
- uses: pkgxdev/brewkit/test@v1 - uses: pkgxdev/brewkit/test@v1
with: with:
pkg: ${{ matrix.pkg }} pkg: ${{ matrix.pkg }}