Skip to content

Commit d45f942

Browse files
committed
attempt to solve persmissions
1 parent 8d10a79 commit d45f942

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,25 @@ jobs:
88
simulate:
99
runs-on: ubuntu-latest
1010
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+
1117
- name: Checkout your repository
1218
uses: actions/checkout@v4
1319

1420
- name: Clone simulate-gate repo
1521
run: git clone --branch nand-ci https://github.com/mattvenn/simulate-gate.git
1622

1723
- name: Run make check inside Docker with bashrc sourced
24+
env:
25+
UID: ${{ steps.id.outputs.UID }}
26+
GID: ${{ steps.id.outputs.GID }}
1827
run: |
1928
docker run --rm \
29+
--user $UID:$GID \
2030
--entrypoint bash \
2131
-v ${{ github.workspace }}/simulate-gate:/work \
2232
-w /work \

0 commit comments

Comments
 (0)