Skip to content

Commit

Permalink
chore(ci): pin ubuntu 22.04 to workaround setup-ocaml issue (semgrep/…
Browse files Browse the repository at this point in the history
…semgrep-proprietary#2410)

Ubuntu 24.04 and setup-ocaml don't work well together now.

See ocaml/setup-ocaml#872.

build-test-windows-x86 uses windows-latest, and check-semgrep-javascript
uses ubuntu-latest-16-core, so they're not affected as of now, but we'll
see.

synced from Pro 8c079027934baa957d6b6bbd068a4a5125cd75f9
  • Loading branch information
amchiclet authored and GitHub Actions Bot committed Oct 15, 2024
1 parent d420f4f commit e7d14ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/libs/semgrep.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ local opam_setup = function(opam_switch="4.14.0") {
},
};

// We can't use ubuntu-latest (currently 24.04) just yet until
// https://github.com/ocaml/setup-ocaml/issues/872
// is fixed.
local stable_ubuntu_version_for_setup_ocaml = 'ubuntu-22.04';

// ----------------------------------------------------------------------------
// Entry point
// ----------------------------------------------------------------------------
Expand Down Expand Up @@ -301,4 +306,6 @@ local opam_setup = function(opam_switch="4.14.0") {
github_bot: github_bot,
cache_opam: cache_opam,
slack: slack,

stable_ubuntu_version_for_setup_ocaml: stable_ubuntu_version_for_setup_ocaml,
}

0 comments on commit e7d14ca

Please sign in to comment.