mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
Merge pull request #2304 from iNavFlight/mmosca-arm64-linux-support
Linux arm64 support
This commit is contained in:
commit
fc8ae2a6ea
1 changed files with 55 additions and 0 deletions
55
.github/workflows/ci.yml
vendored
55
.github/workflows/ci.yml
vendored
|
@ -68,6 +68,61 @@ jobs:
|
|||
name: ${{ env.BUILD_NAME }}_ZIP
|
||||
path: ./out/make/zip/linux/x64/*.zip
|
||||
|
||||
build-linux-arm64:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup environment
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
run: |
|
||||
# This is the hash of the commit for the PR
|
||||
# when the action is triggered by PR, empty otherwise
|
||||
COMMIT_ID=${{ github.event.pull_request.head.sha }}
|
||||
# This is the hash of the commit when triggered by push
|
||||
# but the hash of refs/pull/<n>/merge, which is different
|
||||
# from the hash of the latest commit in the PR, that's
|
||||
# why we try github.event.pull_request.head.sha first
|
||||
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
|
||||
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
||||
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
||||
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
|
||||
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||
echo "BUILD_NAME=inav-configurator_linux_aarch64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
#check-latest: true
|
||||
#cache: 'npm'
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get -y install dpkg fakeroot rpm build-essential libudev-dev
|
||||
- name: Install deps
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
max_attempts: 3
|
||||
retry_on: error
|
||||
command: npm install --foreground-scripts
|
||||
timeout_minutes: 10
|
||||
on_retry_command: rm -rfv node_modules
|
||||
- name: Remove SITL binary
|
||||
run: rm -v resources/sitl/linux/inav_SITL
|
||||
- name: Build Linux
|
||||
run: npm run make
|
||||
- name: Upload Linux deb
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.BUILD_NAME }}_DEB
|
||||
path: ./out/make/deb/*/*.deb
|
||||
- name: Upload Linux rpm
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.BUILD_NAME }}_RPM
|
||||
path: ./out/make/rpm/*/*.rpm
|
||||
- name: Upload Linux zip
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.BUILD_NAME }}_ZIP
|
||||
path: ./out/make/zip/linux/*/*.zip
|
||||
|
||||
build-mac-arm64:
|
||||
runs-on: macos-13
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue