fix(ci): Don't install unuseful ninja on macOS and windows

This commit is contained in:
Edoardo Marangoni
2024-10-17 16:17:58 +02:00
parent 2d04cc2619
commit 8e80dbde72

View File

@ -283,23 +283,23 @@ jobs:
- name: Install Nextest - name: Install Nextest
uses: taiki-e/install-action@nextest uses: taiki-e/install-action@nextest
- name: Install `ninja` on Ubuntu - name: Install `clang` and `mold` on Ubuntu
if: startsWith(matrix.metadata.build, 'linux-') if: startsWith(matrix.metadata.build, 'linux-')
shell: bash shell: bash
run: | run: |
sudo apt-get update -y && sudo apt-get install ninja-build clang mold -y sudo apt-get update -y && sudo apt-get install clang mold -y
- name: Install `ninja` on macOS # - name: Install `ninja` on macOS
if: startsWith(matrix.metadata.build, 'macos-') # if: startsWith(matrix.metadata.build, 'macos-')
shell: bash # shell: bash
run: | # run: |
brew install ninja # brew install ninja
- name: Install `ninja` on Windows # - name: Install `ninja` on Windows
if: startsWith(matrix.metadata.build, 'windows-') # if: startsWith(matrix.metadata.build, 'windows-')
shell: bash # shell: bash
run: | # run: |
choco install ninja # choco install ninja
- name: Delete unwanted link to stop it from interfering (Windows) - name: Delete unwanted link to stop it from interfering (Windows)
shell: bash shell: bash