mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-03 17:39:25 +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:
parent
3446825971
commit
543bf3b993
33
.github/workflows/cmake_build.yml
vendored
33
.github/workflows/cmake_build.yml
vendored
@ -107,10 +107,35 @@ jobs:
|
|||||||
JFROG_ARTIFACTORY_NUGET_PASS: ${{secrets.JFROG_ARTIFACTORY_NUGET_PASS}}
|
JFROG_ARTIFACTORY_NUGET_PASS: ${{secrets.JFROG_ARTIFACTORY_NUGET_PASS}}
|
||||||
JFROG_ARTIFACTORY_NUGET_TOKEN: ${{secrets.JFROG_ARTIFACTORY_NUGET_TOKEN}}
|
JFROG_ARTIFACTORY_NUGET_TOKEN: ${{secrets.JFROG_ARTIFACTORY_NUGET_TOKEN}}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: "[Linux] Install dependencies"
|
||||||
if: runner.os != 'Windows'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: >-
|
||||||
exec bash "scripts/ci/dependencies.sh"
|
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"
|
- name: "[Windows] Install dependencies"
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user