Skip to content

Commit

Permalink
workflows: fix pull_request workflow
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hansbinderup committed Feb 28, 2025
1 parent 3269b28 commit 5d74649
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d74649

Please sign in to comment.