From d8a6c0f19a5146ea9d5b37fb76e4c6236903f157 Mon Sep 17 00:00:00 2001 From: Yishuai Li Date: Mon, 15 Jul 2024 16:10:37 +0800 Subject: [PATCH] ci: Restrict OS for versions --- .github/dependabot.yml | 6 ++++++ .github/workflows/build.yml | 36 +++++++++++++++++++++++++----------- 2 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ca79ca5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13ae45a..23744e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,22 +18,36 @@ jobs: - ubuntu-latest - windows-latest ocaml-version: - - 4.02.x - - 4.03.x - - 4.04.x - - 4.05.x - - 4.06.x - - 4.07.x - - 4.08.x - - 4.09.x - - 4.10.x - - 4.11.x - - 4.12.x - 4.13.x - 4.14.x - 5.0.x - 5.1.x - 5.2.x + include: + - os: ubuntu-latest + ocaml-version: 4.02.x + - os: ubuntu-latest + ocaml-version: 4.03.x + - os: ubuntu-latest + ocaml-version: 4.04.x + - os: ubuntu-latest + ocaml-version: 4.05.x + - os: ubuntu-latest + ocaml-version: 4.06.x + - os: ubuntu-latest + ocaml-version: 4.07.x + - os: ubuntu-latest + ocaml-version: 4.08.x + - os: ubuntu-latest + ocaml-version: 4.09.x + - os: ubuntu-latest + ocaml-version: 4.10.x + - os: ubuntu-latest + ocaml-version: 4.11.x + - os: ubuntu-latest + ocaml-version: 4.12.x + - os: macos-latest + ocaml-version: 4.12.x runs-on: ${{ matrix.os }}