Skip to content

Commit 2097a16

Browse files
authored
Merge pull request #5912 from edwintorok/master
Fix CI failures caused by setup-ocaml@v3
2 parents a836eb3 + aeeade1 commit 2097a16

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/generate-and-build-sdks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
generate-sdk-sources:
1212
name: Generate SDK sources
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4

.github/workflows/setup-xapi-environment/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ runs:
1212
shell: bash
1313
run: |
1414
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env
15+
cat /etc/os-release
1516
1617
- name: Download XE_SR_ERRORCODES.xml
1718
shell: bash
@@ -42,6 +43,10 @@ runs:
4243
echo "TMPDIR=${TMPDIR}" >>"$GITHUB_ENV"
4344
echo "XDG_CACHE_HOME=${XDG_CACHE_HOME}" >>"$GITHUB_ENV"
4445
46+
- name: Get runner OS info
47+
uses: kenchan0130/actions-system-info@master
48+
id: system-info
49+
4550
# We set DUNE_CACHE_STORAGE_MODE, it is required for dune cache to work inside opam for now,
4651
# otherwise it gets EXDEV and considers it a cache miss
4752
- name: Use ocaml
@@ -52,6 +57,7 @@ runs:
5257
xs-opam: ${{ steps.dotenv.outputs.repository }}
5358
dune-cache: true
5459
opam-pin: false
60+
cache-prefix: v3-${{ steps.system-info.outputs.name }}-${{ steps.system-info.outputs.release }}
5561
env:
5662
DUNE_CACHE_STORAGE_MODE: copy
5763

0 commit comments

Comments
 (0)