1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-24 04:31:31 +03:00

ci: build on Ubuntu AArch64

This commit is contained in:
louistiti 2022-10-15 23:24:45 +08:00
parent 401f60e05b
commit 9aaa3d740d
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6

View File

@ -58,10 +58,9 @@ jobs:
with: with:
path: bridges/python/dist/*.zip path: bridges/python/dist/*.zip
build-macos-arm64: build-linux-aarch64:
name: Build on macOS ARM64 name: Build on Linux AArch64
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps: steps:
- name: Clone repository - name: Clone repository
@ -72,15 +71,6 @@ jobs:
with: with:
python-version: 3.9.10 python-version: 3.9.10
- name: Install Pipenv
run: pip install --upgrade pip && pip install pipenv==2022.7.24
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
- name: Set Python bridge version - name: Set Python bridge version
working-directory: bridges/python/src working-directory: bridges/python/src
run: | run: |
@ -90,14 +80,29 @@ jobs:
run: | run: |
echo "Python bridge version: ${{ env.PYTHON_BRIDGE_VERSION }}" echo "Python bridge version: ${{ env.PYTHON_BRIDGE_VERSION }}"
- name: Install core - name: Install Node.js
run: npm ci uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
- name: Set up Python bridge - uses: uraimo/run-on-arch-action@v2
run: npm run setup:python-bridge name: Run commands on AArch64
with:
arch: aarch64
distro: ubuntu_latest
- name: Build Python bridge githubToken: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:python-bridge
run: |
echo "Install Pipenv"
pip install --upgrade pip && pip install pipenv==2022.7.24
echo "Install core"
npm ci
echo "Set up Python bridge"
npm run setup:python-bridge
echo "Build Python bridge"
npm run build:python-bridge
- name: Upload Python bridge - name: Upload Python bridge
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -106,7 +111,7 @@ jobs:
draft-release: draft-release:
name: Draft-release name: Draft-release
needs: [build, build-macos-arm64] needs: [build, build-linux-aarch64]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: