From d4b0f649801fed71af1c3c9bcb40a152f7cff32d Mon Sep 17 00:00:00 2001 From: avifenesh Date: Tue, 22 Oct 2024 21:09:03 +0000 Subject: [PATCH] fixing the musl release issues Signed-off-by: avifenesh --- .github/json_matrices/build-matrix.json | 10 +++++++--- .github/workflows/npm-cd.yml | 10 +++++----- .github/workflows/setup-musl-on-linux/action.yml | 2 -- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/json_matrices/build-matrix.json b/.github/json_matrices/build-matrix.json index 45ac7a57f3..02a6187142 100644 --- a/.github/json_matrices/build-matrix.json +++ b/.github/json_matrices/build-matrix.json @@ -30,7 +30,11 @@ "RUNNER": "macos-latest", "ARCH": "arm64", "TARGET": "aarch64-apple-darwin", - "PACKAGE_MANAGERS": ["pypi", "npm", "maven"] + "PACKAGE_MANAGERS": [ + "pypi", + "npm", + "maven" + ] }, { "OS": "ubuntu", @@ -38,7 +42,7 @@ "ARCH": "arm64", "TARGET": "aarch64-unknown-linux-musl", "RUNNER": ["self-hosted", "Linux", "ARM64"], - "IMAGE": "node:alpine", + "IMAGE": "node:current-alpine", "CONTAINER_OPTIONS": "--user root --privileged --rm", "PACKAGE_MANAGERS": ["npm"] }, @@ -48,7 +52,7 @@ "ARCH": "x64", "TARGET": "x86_64-unknown-linux-musl", "RUNNER": "ubuntu-latest", - "IMAGE": "node:alpine", + "IMAGE": "node:current-alpine", "CONTAINER_OPTIONS": "--user root --privileged", "PACKAGE_MANAGERS": ["npm"] } diff --git a/.github/workflows/npm-cd.yml b/.github/workflows/npm-cd.yml index 3788d87e04..0672dfcc2b 100644 --- a/.github/workflows/npm-cd.yml +++ b/.github/workflows/npm-cd.yml @@ -79,12 +79,12 @@ jobs: if: ${{ contains(matrix.build.RUNNER, 'self-hosted') && matrix.build.TARGET != 'aarch64-unknown-linux-musl' }} run: sudo chown -R $USER:$USER /home/ubuntu/actions-runner/_work/valkey-glide - # For MUSL on X64 we need to install git since we use the checkout action - - name: Install git for musl + # For MUSL on X86 we need to install git since we use the checkout action + - name: Install git and node for musl if: ${{ contains(matrix.build.TARGET, 'x86_64-unknown-linux-musl')}} run: | apk update - apk add git + apk add git - name: Checkout if: ${{ matrix.build.TARGET != 'aarch64-unknown-linux-musl' }} @@ -336,10 +336,10 @@ jobs: arch: ${{ matrix.build.ARCH }} - name: Setup node - if: ${{ matrix.build.TARGET != 'aarch64-unknown-linux-musl' }} + if: ${{ !contains(matrix.build.TARGET, 'musl') }} uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" registry-url: "https://registry.npmjs.org" architecture: ${{ matrix.build.ARCH }} scope: "${{ vars.NPM_SCOPE }}" diff --git a/.github/workflows/setup-musl-on-linux/action.yml b/.github/workflows/setup-musl-on-linux/action.yml index ed4677b74a..0563e7e3bd 100644 --- a/.github/workflows/setup-musl-on-linux/action.yml +++ b/.github/workflows/setup-musl-on-linux/action.yml @@ -44,8 +44,6 @@ runs: git config --global --add safe.directory "${{ inputs.workspace }}" git clean -xdf git reset --hard - git submodule sync - git submodule update --init --recursive - name: Set up access for musl on ARM shell: bash