Skip to content

Commit d348acb

Browse files
committed
Attempt to fix CI permission issues
`learn-ocaml build` now requires write access to the repository since it writes compilation artefacts in-place.
1 parent d5e7061 commit d348acb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/build-and-test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
uses: actions/checkout@v2
2222
- name: Build Docker images
2323
run: "make docker-images"
24+
- name: Fix permissions
25+
run: "chmod -R a+wX demo-repository"
2426
- name: Run learn-ocaml build on demo-repository
2527
run: "docker run --rm -v $(pwd)/demo-repository:/repository learn-ocaml -- build"
2628
- name: Clone learn-ocaml-corpus inside tests/corpuses

tests/runtests.sh

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ wait_for_it () {
6767
run_server () {
6868
SYNC="$srcdir"/"$dir"/sync
6969
REPO="$srcdir"/"$dir"/repo
70+
chmod -R a+w "$REPO"
7071

7172
mkdir "$SYNC" 2>/dev/null
7273
chmod o+w "$SYNC"

0 commit comments

Comments
 (0)