Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Jul 26, 2022
1 parent 6972f4a commit e8348d6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,30 @@ jobs:
# as a system compiler. This container also contains opam 2.1.
container:
image: ocamlpro/ocaml:4.10
options: --user root

steps:
# This line is needed to acces and use opam. We are unable to set the user
# to `ocaml` with the container parameters
- run: sudo chmod a+wx .
# Give 1001 user rights
# - run: sudo chown -R 1001:1001 .

- name: Reclaim cache directory
run: sudo chown -R 1001:1001 .

# Checkout the code of the current branch
- name: Checkout code
uses: actions/checkout@v2

# - run: sudo chown -R ocaml:ocaml /__w/alt-ergo/alt-ergo

# Switch to ocaml user
- run: su ocaml

# This line is needed to acces and use opam. We are unable to set the user
# to `ocaml` with the container parameters
- run: sudo chmod a+wx .

- run: git config --global --add safe.directory /__w/alt-ergo/alt-ergo

- run: /usr/bin/git ls-files

# Create a switch with the system compiler (no compilation needed).
# And then, install external (no need for depext with opam 2.1) and libs deps.
- run: opam switch create . ocaml-system --deps-only
Expand Down

0 comments on commit e8348d6

Please sign in to comment.