fix(javascript): keep float64 precision for dynamic non-integer numbe… #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| # All `uses:` action pins in this workflow must come from the Apache action allowlist: | |
| # https://github.com/apache/infrastructure-actions/blob/main/actions.yml | |
| name: Publish Fory JVM Snapshot | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-jvm-snapshot | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish-jvm: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'apache/fory' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Apache snapshot repository | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "25" | |
| distribution: "temurin" | |
| architecture: x64 | |
| cache: maven | |
| server-id: apache.snapshots.https | |
| server-username: NEXUS_USERNAME | |
| server-password: NEXUS_PASSWORD | |
| - uses: sbt/setup-sbt@8feba82adc7f01ddcf8165b86f778bdb5b82cebc # v1.5.7 | |
| with: | |
| disk-cache: false | |
| - name: Publish Java and Kotlin snapshots | |
| run: python ./ci/release.py publish_jvm -l java,kotlin --mode snapshot | |
| env: | |
| NEXUS_USERNAME: ${{ secrets.NEXUS_USER }} | |
| NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }} | |
| # Maven local is a cache and may contain POM-only dependencies. Deploy | |
| # only the current Fory artifacts to a complete repository for Scala. | |
| - name: Prepare Fory Java artifacts for Scala | |
| working-directory: java | |
| run: >- | |
| mvn -T10 deploy --no-transfer-progress -DskipTests | |
| -Dmaven.javadoc.skip=true -Dmaven.source.skip=true | |
| -DaltDeploymentRepository=fory-local::default::file://${RUNNER_TEMP}/fory-maven-repo | |
| - name: Publish Scala snapshots | |
| run: python ./ci/release.py publish_jvm -l scala --mode snapshot | |
| env: | |
| NEXUS_USERNAME: ${{ secrets.NEXUS_USER }} | |
| NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }} | |
| SBT_OPTS: -Dfory.maven.repo=file://${{ runner.temp }}/fory-maven-repo |