1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-03 01:19:24 +02:00

CI: Move dependency install script to workflow

This change removes the script `script/ci/dependencies.sh` and moves it
to the GitHub Actions workflow instead.

Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
This commit is contained in:
Edgar 2021-08-31 18:07:38 +02:00 committed by Panagiotis Vasilopoulos
parent 3446825971
commit 543bf3b993
No known key found for this signature in database
GPG Key ID: FD806FDB3B2C5270
2 changed files with 29 additions and 60 deletions

View File

@ -107,10 +107,35 @@ jobs:
JFROG_ARTIFACTORY_NUGET_PASS: ${{secrets.JFROG_ARTIFACTORY_NUGET_PASS}}
JFROG_ARTIFACTORY_NUGET_TOKEN: ${{secrets.JFROG_ARTIFACTORY_NUGET_TOKEN}}
- name: Install dependencies
if: runner.os != 'Windows'
run: |
exec bash "scripts/ci/dependencies.sh"
- name: "[Linux] Install dependencies"
if: runner.os == 'Linux'
run: >-
sudo apt-get update &&
sudo apt-get install -y --no-install-recommends
file
g++
ninja-build
nasm
git
wget
bash
scdoc
ccache
debhelper-compat
gettext
libasound2-dev
libgtk-3-dev
libsuil-dev
gettext
- name: "[MacOS] Install dependencies"
if: runner.os == 'macOS'
run: >-
brew install
bash
ccache
ninja
nasm
- name: "[Windows] Install dependencies"
if: runner.os == 'Windows'

View File

@ -1,56 +0,0 @@
#!/usr/bin/env bash
((${BASH_VERSION%%.*} >= 4)) || echo >&2 "$0: Warning: Using ancient Bash version ${BASH_VERSION}."
set -euxo pipefail
if [[ "${OSTYPE}" == darwin* ]]; then # macOS
# Homebrew packages
brew_packages=(
bash # macOS ships with Bash v3 for licensing reasons so upgrade it now
ccache
ninja
# needed to build ffmpeg
nasm
)
brew install "${brew_packages[@]}"
else # Linux & others
if ! which sudo; then
function sudo() { "$@"; } # no-op sudo for use in Docker images
fi
# Distribution packages
if which apt-get; then
apt_packages=(
# Build tools
file
g++
ninja-build
nasm
git
wget
bash
scdoc
ccache
# Dependencies
debhelper-compat
gettext
libasound2-dev
libgtk-3-dev
libsuil-dev
# GitHub Actions
gettext
)
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends "${apt_packages[@]}"
else
echo >&2 "$0: Error: You don't have a recognized package manager installed."
exit 1
fi
fi