Skip to content

Commit dc9b801

Browse files
Feature/ri 7488 add linux arm64 build (#300)
* RI-7488: add support for linux arm64 builds * RI-7488: change workflow select options to reflect what is happening in code * Tr/ri 7488 add linux arm64 build (#299) * RI-7488: trigger build by push (test) * RI-7488: trigger build by push (test) * RI-7488: rename jobs * RI-7488: build linux only * RI-7488: cleanup test changes
1 parent eaa3ce2 commit dc9b801

File tree

2 files changed

+28
-13
lines changed

2 files changed

+28
-13
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ on:
1111
type: choice
1212
options:
1313
- all
14-
- macos:x64
15-
- macos:arm64
16-
- linux:x64
17-
- windows:x64
14+
- macos:all (amd64, arm64)
15+
- linux:all (amd64, arm64)
16+
- windows:all (amd64)
1817

1918
environment:
2019
description: Environment to run build

.github/workflows/pipeline-build-linux.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jobs:
4747
- name: Install dependencies for root package.js
4848
run: yarn install --frozen-lockfile
4949

50-
- name: Download backend
51-
uses: ./.github/actions/download-backend
52-
5350
- name: Configure Environment Variables
5451
run: |
5552
{
@@ -66,27 +63,46 @@ jobs:
6663
echo "RI_APP_TYPE=${{ env.RI_APP_TYPE }}"
6764
} >> "${{ env.envFile }}"
6865
69-
- name: Build linux package (production)
66+
- name: Download backend x64
67+
uses: ./.github/actions/download-backend
68+
69+
- name: Build linux package x64 (production)
70+
if: inputs.environment == 'production'
71+
run: |
72+
yarn package:prod --target linux-x64 --out ${packagePath}-x64.vsix
73+
74+
- name: Build linux package x64 (staging)
75+
if: inputs.environment == 'staging'
76+
run: |
77+
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" ${{ env.envFile }}
78+
yarn package:stage --target linux-x64 --out ${packagePath}-x64.vsix
79+
80+
- name: Download backend arm64
81+
uses: ./.github/actions/download-backend
82+
with:
83+
arch: arm64
84+
85+
- name: Build linux package arm64 (production)
7086
if: inputs.environment == 'production'
7187
run: |
72-
yarn package:prod --target linux-x64 --out ${packagePath}
88+
yarn package:prod --target linux-arm64 --out ${packagePath}-arm64.vsix
7389
74-
- name: Build linux package (staging)
90+
- name: Build linux package arm64 (staging)
7591
if: inputs.environment == 'staging'
7692
run: |
7793
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" ${{ env.envFile }}
78-
yarn package:stage --target linux-x64 --out ${packagePath}
94+
yarn package:stage --target linux-arm64 --out ${packagePath}-arm64.vsix
7995
8096
- uses: actions/upload-artifact@v4
8197
name: Upload extension artifact
8298
with:
83-
name: linux-build
99+
name: linux-builds
84100
path: |
85101
release/redis-for-*.vsix
86102
87103
env:
88104
envFile: '.env'
89-
packagePath: './release/redis-for-vscode-extension-linux-x64.vsix'
105+
packagePath: './release/redis-for-vscode-extension-linux'
90106
RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }}
91107
RI_CLOUD_IDP_AUTHORIZE_URL: ${{ secrets.RI_CLOUD_IDP_AUTHORIZE_URL }}
92108
RI_CLOUD_IDP_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_TOKEN_URL }}

0 commit comments

Comments
 (0)