1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 23:29:41 +02:00

CI: Use scoop instead of choco

Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
This commit is contained in:
Edgar 2021-08-29 11:39:02 +02:00 committed by Panagiotis Vasilopoulos
parent 807b710c74
commit 3446825971
No known key found for this signature in database
GPG Key ID: FD806FDB3B2C5270
2 changed files with 13 additions and 17 deletions

View File

@ -90,7 +90,6 @@ jobs:
with:
submodules: true
- name: Install Nuget
uses: nuget/setup-nuget@v1
with:
@ -109,9 +108,21 @@ jobs:
JFROG_ARTIFACTORY_NUGET_TOKEN: ${{secrets.JFROG_ARTIFACTORY_NUGET_TOKEN}}
- name: Install dependencies
if: runner.os != 'Windows'
run: |
exec bash "scripts/ci/dependencies.sh"
- name: "[Windows] Install dependencies"
if: runner.os == 'Windows'
shell: pwsh
env:
# Install path of scoop
SCOOP: C:\Scoop\
run: |
echo "C:\Scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
iwr -useb get.scoop.sh | iex
scoop install sccache
- name: Install Apple codesigning certificates
uses: apple-actions/import-codesign-certs@v1
if: startswith( matrix.config.os, 'macos' ) && github.repository_owner == 'tenacityteam' && github.event_name == 'create' && github.event.ref_type == 'tag'

View File

@ -4,22 +4,7 @@
set -euxo pipefail
if [[ "${OSTYPE}" == msys* ]]; then # Windows
if which choco; then
# Chocolatey packages
choco_packages=(
sccache
)
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
if [[ "${OSTYPE}" == darwin* ]]; then # macOS
# Homebrew packages
brew_packages=(