Skip to content

Commit 057c078

Browse files
authored
Merge pull request #18 from Krishnacore/main
Add linux arm cli build
2 parents 87b57c3 + 9de4772 commit 057c078

1 file changed

Lines changed: 42 additions & 16 deletions

File tree

.github/workflows/cli-release.yaml

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,47 @@ jobs:
159159
path: lumio-cli-*.zip
160160

161161
# Generic linux arm should be the older version, more likely compatible
162-
# build-linux-arm-binary:
163-
# name: "Build Linux ARM binary"
164-
# runs-on: ubuntu-22.04-arm
165-
# steps:
166-
# - uses: actions/checkout@v4
167-
# with:
168-
# ref: ${{ github.event.inputs.source_git_ref_override }}
169-
# - uses: ./.github/actions/cli-rust-setup
170-
# - name: Build CLI
171-
# run: scripts/cli/build_cli_release.sh "Linux" "${{inputs.release_version}}" "${{inputs.skip_checks}}" "false"
172-
# - name: Upload Binary
173-
# uses: actions/upload-artifact@v4
174-
# with:
175-
# name: cli-builds-linux-arm
176-
# path: lumio-cli-*.zip
162+
build-linux-arm-binary:
163+
name: "Build Linux ARM binary"
164+
runs-on: ubuntu-22.04-arm
165+
steps:
166+
- uses: actions/checkout@v4
167+
with:
168+
ref: ${{ github.event.inputs.source_git_ref_override }}
169+
170+
- uses: dsherret/rust-toolchain-file@v1
171+
172+
- name: Install build tools
173+
shell: bash
174+
run: scripts/cli/minimal_cli_build.sh
175+
176+
- run: echo "/home/runner/.cargo/bin" | tee -a $GITHUB_PATH
177+
shell: bash
178+
179+
- name: Setup git credentials
180+
shell: bash
181+
run: |
182+
# Ensure github.com is in known_hosts to prevent interactive prompts
183+
mkdir -p ~/.ssh
184+
ssh-keyscan github.com >> ~/.ssh/known_hosts
185+
186+
# Write SSH Key from secret to file
187+
echo "${{ secrets.LUMIO_BUILD_SSH_KEY }}" > ~/.ssh/id_ed25519
188+
chmod 600 ~/.ssh/id_ed25519
189+
190+
# Configure git to use this key specifically
191+
git config --global core.sshCommand "ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=~/.ssh/known_hosts"
192+
193+
# FORCE Cargo to use git CLI
194+
echo "CARGO_NET_GIT_FETCH_WITH_CLI=true" >> $GITHUB_ENV
195+
196+
- name: Build CLI
197+
run: scripts/cli/build_cli_release.sh "Linux" "${{inputs.release_version}}" "${{inputs.skip_checks}}" "false"
198+
- name: Upload Binary
199+
uses: actions/upload-artifact@v4
200+
with:
201+
name: cli-builds-linux-arm
202+
path: lumio-cli-*.zip
177203

178204
# build-macos-x86_64-binary:
179205
# name: "Build MacOS x86_64 binary"
@@ -315,7 +341,7 @@ jobs:
315341
- build-ubuntu24-binary
316342
- build-windows-binary
317343
- build-linux-binary
318-
# - build-linux-arm-binary
344+
- build-linux-arm-binary
319345
- build-macos-arm-binary
320346
# - build-macos-x86_64-binary
321347
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)