Skip to content

Commit

Permalink
Merge pull request xapi-project#5912 from edwintorok/master
Browse files Browse the repository at this point in the history
Fix CI failures caused by setup-ocaml@v3
  • Loading branch information
edwintorok authored Aug 5, 2024
2 parents a836eb3 + aeeade1 commit 2097a16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generate-and-build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
generate-sdk-sources:
name: Generate SDK sources
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/setup-xapi-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ runs:
shell: bash
run: |
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env
cat /etc/os-release
- name: Download XE_SR_ERRORCODES.xml
shell: bash
Expand Down Expand Up @@ -42,6 +43,10 @@ runs:
echo "TMPDIR=${TMPDIR}" >>"$GITHUB_ENV"
echo "XDG_CACHE_HOME=${XDG_CACHE_HOME}" >>"$GITHUB_ENV"
- name: Get runner OS info
uses: kenchan0130/actions-system-info@master
id: system-info

# We set DUNE_CACHE_STORAGE_MODE, it is required for dune cache to work inside opam for now,
# otherwise it gets EXDEV and considers it a cache miss
- name: Use ocaml
Expand All @@ -52,6 +57,7 @@ runs:
xs-opam: ${{ steps.dotenv.outputs.repository }}
dune-cache: true
opam-pin: false
cache-prefix: v3-${{ steps.system-info.outputs.name }}-${{ steps.system-info.outputs.release }}
env:
DUNE_CACHE_STORAGE_MODE: copy

Expand Down

0 comments on commit 2097a16

Please sign in to comment.