From 0f7cabe2d8f7bbf3da5a19e5a24a8529caf9b3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Mon, 7 Oct 2024 15:07:54 +0200 Subject: [PATCH] Install mercurial via OS package manager (#645) Installing mercurial via pip on Windows fails due to a missing dependency. But the chocolatey package works, so we'll be using that. In fact, we'll use OS-specific package managers on all platforms to install mercurial (like we already do for fossil). --- .github/workflows/ci.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb33388b..da864a99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,35 +28,26 @@ jobs: git config --global column.ui always git config --global core.autocrlf false - - name: Install Python - uses: actions/setup-python@v5 - - - name: Upgrade pip - run: python -m pip install --upgrade pip - - - name: Install Mercurial - run: pip install mercurial - - name: Install Crystal uses: oprypin/install-crystal@v1 with: crystal: ${{ matrix.crystal }} - - name: Install Fossil + - name: Install Fossil and Mercurial if: ${{ runner.os == 'Linux' }} run: | sudo apt-get update - sudo apt-get install fossil + sudo apt-get install fossil mercurial - - name: Install Fossil - if: ${{ matrix.os == 'macos-12' }} + - name: Install Fossil and Mercurial + if: ${{ runner.os == 'macOS' }} run: | brew update - brew install fossil + brew install fossil mercurial - - name: Install Fossil - if: ${{ matrix.os == 'windows-2022' }} - run: choco install fossil + - name: Install Fossil and Mercurial + if: ${{ runner.os == 'Windows' }} + run: choco install fossil hg - name: Download source uses: actions/checkout@v4