We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d10a79 commit d45f942Copy full SHA for d45f942
1 file changed
.github/workflows/test.yaml
@@ -8,15 +8,25 @@ jobs:
8
simulate:
9
runs-on: ubuntu-latest
10
steps:
11
+ - name: Get runner UID and GID
12
+ id: id
13
+ run: |
14
+ echo "UID=$(id -u)" >> $GITHUB_OUTPUT
15
+ echo "GID=$(id -g)" >> $GITHUB_OUTPUT
16
+
17
- name: Checkout your repository
18
uses: actions/checkout@v4
19
20
- name: Clone simulate-gate repo
21
run: git clone --branch nand-ci https://github.com/mattvenn/simulate-gate.git
22
23
- name: Run make check inside Docker with bashrc sourced
24
+ env:
25
+ UID: ${{ steps.id.outputs.UID }}
26
+ GID: ${{ steps.id.outputs.GID }}
27
run: |
28
docker run --rm \
29
+ --user $UID:$GID \
30
--entrypoint bash \
31
-v ${{ github.workspace }}/simulate-gate:/work \
32
-w /work \
0 commit comments