mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +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:
committed by
Panagiotis Vasilopoulos
parent
807b710c74
commit
3446825971
13
.github/workflows/cmake_build.yml
vendored
13
.github/workflows/cmake_build.yml
vendored
@@ -90,7 +90,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
|
||||||
- name: Install Nuget
|
- name: Install Nuget
|
||||||
uses: nuget/setup-nuget@v1
|
uses: nuget/setup-nuget@v1
|
||||||
with:
|
with:
|
||||||
@@ -109,9 +108,21 @@ jobs:
|
|||||||
JFROG_ARTIFACTORY_NUGET_TOKEN: ${{secrets.JFROG_ARTIFACTORY_NUGET_TOKEN}}
|
JFROG_ARTIFACTORY_NUGET_TOKEN: ${{secrets.JFROG_ARTIFACTORY_NUGET_TOKEN}}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
if: runner.os != 'Windows'
|
||||||
run: |
|
run: |
|
||||||
exec bash "scripts/ci/dependencies.sh"
|
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
|
- name: Install Apple codesigning certificates
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
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'
|
if: startswith( matrix.config.os, 'macos' ) && github.repository_owner == 'tenacityteam' && github.event_name == 'create' && github.event.ref_type == 'tag'
|
||||||
|
@@ -4,22 +4,7 @@
|
|||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
if [[ "${OSTYPE}" == msys* ]]; then # Windows
|
if [[ "${OSTYPE}" == darwin* ]]; then # macOS
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# Homebrew packages
|
# Homebrew packages
|
||||||
brew_packages=(
|
brew_packages=(
|
||||||
|
Reference in New Issue
Block a user