Skip to content

Commit

Permalink
[ci] Fixes fasttext native build for nodejs20 issue (#3478)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Sep 17, 2024
1 parent aa2f2ca commit 5362332
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/native_s3_fasttext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,20 @@ permissions:
jobs:
build-fasttext-jni-linux:
runs-on: ubuntu-latest
container: amazonlinux:2
container:
image: amazonlinux:2
env:
JAVA_HOME: /usr/lib/jvm/java-17-amazon-corretto
steps:
- name: Install Environment
run: |
yum -y update
yum -y groupinstall "Development Tools"
yum -y install patch cmake3 curl jq
yum -y install java-17-amazon-corretto-devel
ln -sf /usr/bin/cmake3 /usr/bin/cmake
pip3 install awscli --upgrade
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('*/build.gradle.kts', 'engines/**/build.gradle.kts', 'extensions/**/build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: taiki-e/checkout-action@v1
- name: Release JNI prep
run: |
export PYTORCH_PRECXX11=true
Expand Down

0 comments on commit 5362332

Please sign in to comment.