Bumped dependencies #3254
Workflow file for this run
This file contains 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
name: Check PR | |
on: | |
pull_request: | |
jobs: | |
check-pr: | |
name: Check PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'sbt' | |
gpg-private-key: ${{ secrets.OSSRH_GPG_KEY }} | |
gpg-passphrase: ${{ secrets.OSSRH_GPG_PASSPHRASE }} | |
- name: Check PR | |
run: sbt -J-Xlog:gc*=debug:file=./gc.log --mem 8096 --batch ";checkPR;completeQaseRun" | |
env: | |
QASE_ENABLE: true | |
QASE_RUN_NAME: checkPR | |
QASE_RUN_ID: 1 | |
QASE_PROJECT_CODE: PR | |
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }} | |
CHECKPR_RUN_ID: ${{ github.run_id }} | |
- name: Clean cache | |
run: find ~/.cache/coursier -type d -name '*SNAPSHOT' | xargs rm -vrf {} \; | |
- name: Publish snapshots | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'publish-snapshots') }} | |
env: | |
SONATYPE_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
PGP_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }} | |
run: | | |
version=$(echo ${{ github.base_ref }} | awk -F '[-\.]' '{print $2"."$3}') | |
pr_number=${{ github.event.number }} | |
sbt -Dproject.version=$version-$pr_number-SNAPSHOT --mem 4096 --batch publishSigned | |
- name: Save debug data | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
if-no-files-found: ignore | |
name: debug-data | |
path: | | |
gc.log | |
hs*.log | |
core* | |
compile-external-sources: | |
name: Compile external contracts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'sbt' | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
lang: | |
- 'lang/**' | |
- 'build.sbt' | |
- 'project/*' | |
- name: Compile external sources | |
if: steps.filter.outputs.lang == 'true' | |
run: | | |
sbt lang/assembly | |
mkdir -p target/contracts | |
cd target/contracts | |
git clone https://github.com/waves-exchange/neutrino-contract | |
git clone https://github.com/waves-exchange/contracts | |
git clone https://github.com/waves-ducks-core/wavesducks-public | |
git clone https://oauth2:${{ secrets.SWOPFI_GITLAB_TOKEN }}@gitlabwp.wvservices.com/swopfi/swopfi-smart-contracts | |
find . -name '*.ride' -print0 | parallel -0 java -jar lang/jvm/target/file-compiler.jar {} |