Skip to content

Commit ee5f44a

Browse files
authored
CI: add CI support for linux-arm64 platform (#548)
1 parent 54d9fc9 commit ee5f44a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/build.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,32 @@ jobs:
178178
run: |
179179
call mvn -f tensorflow-core/tensorflow-core-native/pom.xml deploy:deploy-file@native-only -B -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }} -Durl=${{ needs.prepare.outputs.repositoryUrl }}
180180
if ERRORLEVEL 1 exit /b
181+
linux-arm64:
182+
runs-on: linux-arm64-ubuntu2204
183+
needs: prepare
184+
strategy:
185+
matrix:
186+
ext: [""]
187+
steps:
188+
- name: Install environment
189+
run: |
190+
sudo apt update
191+
sudo apt install -y curl wget unzip tar git gcc g++ maven default-jdk
192+
- name: Checkout repository
193+
uses: actions/checkout@v1
194+
- name: Build project
195+
run: |
196+
gcc --version
197+
mvn -version
198+
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
199+
mvn clean install -pl '!tensorflow-framework' -B -U -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }}
200+
- name: Deploy native artifact
201+
if: env.DEPLOY_RELEASE == 'true' || env.DEPLOY_SNAPSHOT == 'true'
202+
run: mvn -f tensorflow-core/tensorflow-core-native/pom.xml deploy:deploy-file@native-only -B -e -Djavacpp.platform=${{ github.job }} -Djavacpp.platform.extension=${{ matrix.ext }} -Durl=${{ needs.prepare.outputs.repositoryUrl }}
181203

182204
deploy:
183205
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/staging') }} # DEPLOY_SNAPSHOT (releases should be signed and deployed manually from local machine)
184-
needs: [linux-x86_64, macosx-x86_64, windows-x86_64, macosx-arm64]
206+
needs: [linux-x86_64, macosx-x86_64, windows-x86_64, macosx-arm64, linux-arm64]
185207
runs-on: ubuntu-20.04
186208
steps:
187209
- name: Configure Java

0 commit comments

Comments
 (0)