From 5d7464959cdf449714c5a502be5d70334c18ea8d Mon Sep 17 00:00:00 2001 From: Hans Binderup Date: Fri, 28 Feb 2025 15:12:09 +0100 Subject: [PATCH] workflows: fix pull_request workflow 1. We've added a user, so we should probably use it. 2. Problem seems to come from checkout action - maybe this works? Signed-off-by: Hans Binderup --- .github/workflows/pull_request.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b574527..edaa101 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,23 +12,29 @@ concurrency: jobs: build: runs-on: ubuntu-latest - container: hansbinderup/meson-gcc:1.0 + container: + image: hansbinderup/meson-gcc:1.0 + options: --user root steps: - name: Checkout uses: actions/checkout@v4 - - name: Clean - run: scripts/clean.sh + with: + clean: true + set-safe-directory: true - name: Build release run: scripts/build.sh unit-tests: runs-on: ubuntu-latest - container: hansbinderup/meson-gcc:1.0 + container: + image: hansbinderup/meson-gcc:1.0 + options: --user root steps: - name: Checkout uses: actions/checkout@v4 - - name: Clean - run: scripts/clean.sh + with: + clean: true + set-safe-directory: true - name: Build and run unit tests run: scripts/unit_test.sh - name: Test Report