ci: give the container an init process and a runtime dir
- commit
- a4a3f87284a487baec3e601dcda45b9bb715ad14
- author
- brice · · 2026-09-26 16:32 UTC
- parent
- fac9303
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +9 -2
M .github/workflows/ci.yml +9 -2
| @@ -11,7 +11,12 @@ jobs: | |||
| 11 | 11 | # change protocol behavior and SPIR-V bytes. | |
| 12 | 12 | check: | |
| 13 | 13 | runs-on: ubuntu-latest | |
| 14 | - | container: archlinux:latest | |
| 14 | + | container: | |
| 15 | + | image: archlinux:latest | |
| 16 | + | # An init process reaps killed children, as on a real session. | |
| 17 | + | options: --init | |
| 18 | + | env: | |
| 19 | + | XDG_RUNTIME_DIR: /tmp/xdg-runtime | |
| 15 | 20 | steps: | |
| 16 | 21 | # Libraries loaded at runtime through purego; vulkan-swrast (lavapipe) | |
| 17 | 22 | # gives tests a Vulkan device; gcc is for the race detector. | |
| @@ -20,7 +25,9 @@ jobs: | |||
| 20 | 25 | git go make gcc shaderc wayland libxkbcommon libinput seatd | |
| 21 | 26 | vulkan-icd-loader vulkan-swrast | |
| 22 | 27 | - uses: actions/checkout@v4 | |
| 23 | - | - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| 28 | + | - run: | | |
| 29 | + | git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| 30 | + | install -d -m 700 "$XDG_RUNTIME_DIR" | |
| 24 | 31 | - run: | | |
| 25 | 32 | go install github.com/bnema/hexcheck/cmd/hexcheck@v0.2.0 | |
| 26 | 33 | go install github.com/vektra/mockery/v3@v3.8.0 | |
| @@ -11,7 +11,12 @@ jobs: | |||||
| 11 | # change protocol behavior and SPIR-V bytes. | 11 | # change protocol behavior and SPIR-V bytes. | ||
| 12 | check: | 12 | check: | ||
| 13 | runs-on: ubuntu-latest | 13 | runs-on: ubuntu-latest | ||
| 14 | - | container: archlinux:latest | 14 | + | container: |
| 15 | + | image: archlinux:latest | |||
| 16 | + | # An init process reaps killed children, as on a real session. | |||
| 17 | + | options: --init | |||
| 18 | + | env: | |||
| 19 | + | XDG_RUNTIME_DIR: /tmp/xdg-runtime | |||
| 15 | steps: | 20 | steps: | ||
| 16 | # Libraries loaded at runtime through purego; vulkan-swrast (lavapipe) | 21 | # Libraries loaded at runtime through purego; vulkan-swrast (lavapipe) | ||
| 17 | # gives tests a Vulkan device; gcc is for the race detector. | 22 | # gives tests a Vulkan device; gcc is for the race detector. | ||
| @@ -20,7 +25,9 @@ jobs: | |||||
| 20 | git go make gcc shaderc wayland libxkbcommon libinput seatd | 25 | git go make gcc shaderc wayland libxkbcommon libinput seatd | ||
| 21 | vulkan-icd-loader vulkan-swrast | 26 | vulkan-icd-loader vulkan-swrast | ||
| 22 | - uses: actions/checkout@v4 | 27 | - uses: actions/checkout@v4 | ||
| 23 | - | - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | 28 | + | - run: | |
| 29 | + | git config --global --add safe.directory "$GITHUB_WORKSPACE" | |||
| 30 | + | install -d -m 700 "$XDG_RUNTIME_DIR" | |||
| 24 | - run: | | 31 | - run: | | ||
| 25 | go install github.com/bnema/hexcheck/cmd/hexcheck@v0.2.0 | 32 | go install github.com/bnema/hexcheck/cmd/hexcheck@v0.2.0 | ||
| 26 | go install github.com/vektra/mockery/v3@v3.8.0 | 33 | go install github.com/vektra/mockery/v3@v3.8.0 | ||