diff --git a/.github/actions/install-dependencies/install-dependencies.sh b/.github/actions/install-dependencies/install-dependencies.sh index 20b049564..a6f1369d4 100755 --- a/.github/actions/install-dependencies/install-dependencies.sh +++ b/.github/actions/install-dependencies/install-dependencies.sh @@ -28,6 +28,12 @@ setup_linux() { gstreamer1.0-plugins-good gstreamer1.0-plugins-bad \ gstreamer1.0-plugins-ugly gstreamer1.0-alsa gstreamer1.0-pulseaudio git \ curl libfuse2 + + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" + nvm install 16.20.2 + nvm use 16.20.2 else apt-get install -yq --no-install-suggests --no-install-recommends \ build-essential qt6-l10n-tools qt6-base-dev qt6-multimedia-dev \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ad99eb39..fd5c851bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,15 @@ jobs: apt-get -yq install software-properties-common apt-add-repository -y ppa:git-core/ppa apt-get update -yq - apt-get install -yq --no-install-suggests --no-install-recommends git + apt-get install -yq --no-install-suggests --no-install-recommends wget git + - name: Setup Node v16 + if: runner.os == 'Linux' && matrix.qt == 5 + run: | + wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" + nvm install 16.20.2 + nvm use 16.20.2 - name: Check out repository uses: actions/checkout@v3 - name: Install dependencies @@ -94,6 +102,8 @@ jobs: with: arch: ${{matrix.arch}} qt: ${{matrix.qt}} + - name: Check out repository + uses: actions/checkout@v3 - name: Set up environment uses: ./.github/actions/setup-environment