mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
CI: Install Conan using package manager
Before this change, the CI used `pip` to install Conan. This was not optimal. Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
This commit is contained in:
parent
916def4061
commit
8a0502febd
9
.github/workflows/cmake_build.yml
vendored
9
.github/workflows/cmake_build.yml
vendored
@ -71,6 +71,11 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Add conan to path
|
||||
if: runner.os == 'Windows'
|
||||
run: echo "C:\Program Files\Conan\conan\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
shell: pwsh
|
||||
|
||||
- name: Dependencies
|
||||
run: |
|
||||
exec bash "scripts/ci/dependencies.sh"
|
||||
@ -98,10 +103,6 @@ jobs:
|
||||
if: runner.os == 'Windows'
|
||||
run: rm "C:/Program Files/Git/usr/bin/link.EXE"
|
||||
|
||||
- name: "[Windows] Install sccache"
|
||||
if: runner.os == 'Windows'
|
||||
run: choco install sccache
|
||||
|
||||
- name: "Set up compiler cache"
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
@ -6,11 +6,19 @@ set -euxo pipefail
|
||||
|
||||
if [[ "${OSTYPE}" == msys* ]]; then # Windows
|
||||
|
||||
# Python packages
|
||||
pip_packages=(
|
||||
conan
|
||||
)
|
||||
pip3 install "${pip_packages[@]}"
|
||||
if which choco; then
|
||||
|
||||
# Chocolatey packages
|
||||
choco_packages=(
|
||||
sccache
|
||||
conan
|
||||
)
|
||||
|
||||
choco install "${choco_packages[@]}" -y
|
||||
else
|
||||
echo >&2 "$0: Error: You don't have a recognized package manager installed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
elif [[ "${OSTYPE}" == darwin* ]]; then # macOS
|
||||
|
||||
@ -41,24 +49,17 @@ else # Linux & others
|
||||
libasound2-dev
|
||||
libgtk2.0-dev
|
||||
gettext
|
||||
python3-pip
|
||||
ccache
|
||||
)
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y --no-install-recommends "${apt_packages[@]}"
|
||||
|
||||
# Download Conan from github
|
||||
wget "https://github.com/conan-io/conan/releases/latest/download/conan-ubuntu-64.deb" -nv -O /tmp/conan.deb
|
||||
sudo dpkg -i /tmp/conan.deb
|
||||
else
|
||||
echo >&2 "$0: Error: You don't have a recognized package manager installed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Python packages
|
||||
pip_packages=(
|
||||
conan
|
||||
)
|
||||
|
||||
which cmake || pip_packages+=( cmake ) # get latest CMake when inside Docker image
|
||||
|
||||
pip3 install wheel setuptools # need these first to install other packages (e.g. conan)
|
||||
pip3 install "${pip_packages[@]}"
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user