Skip to content

Commit

Permalink
fixing the musl release issues
Browse files Browse the repository at this point in the history
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
  • Loading branch information
avifenesh committed Oct 22, 2024
1 parent f65b0fe commit d4b0f64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/json_matrices/build-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@
"RUNNER": "macos-latest",
"ARCH": "arm64",
"TARGET": "aarch64-apple-darwin",
"PACKAGE_MANAGERS": ["pypi", "npm", "maven"]
"PACKAGE_MANAGERS": [
"pypi",
"npm",
"maven"
]
},
{
"OS": "ubuntu",
"NAMED_OS": "linux",
"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"]
},
Expand All @@ -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"]
}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/npm-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down Expand Up @@ -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 }}"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/setup-musl-on-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4b0f64

Please sign in to comment.