mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
ci: Set version in scala (#571)
* Set version in scala * Fix ident * Try different variable * Fix
This commit is contained in:
parent
41fbdfca6c
commit
081dafdcec
11
.github/workflows/snapshot.yml
vendored
11
.github/workflows/snapshot.yml
vendored
@ -25,6 +25,13 @@ jobs:
|
||||
with:
|
||||
repository: fluencelabs/aqua
|
||||
|
||||
- name: Generate version
|
||||
id: version
|
||||
run: |
|
||||
SHA=${{ github.event.pull_request.head.sha }}
|
||||
echo "::set-output name=sha::${SHA::7}"
|
||||
echo "::set-output name=branch::${GITHUB_HEAD_REF//[^a-zA-Z0-9-]/-}"
|
||||
|
||||
- name: Cache Scala
|
||||
uses: coursier/cache-action@v6
|
||||
|
||||
@ -32,6 +39,8 @@ jobs:
|
||||
uses: coursier/setup-action@v1
|
||||
|
||||
- name: Compile aqua
|
||||
env:
|
||||
BUILD_NUMBER: ${{ steps.version.outputs.branch }}-${{ steps.version.outputs.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
|
||||
run: sbt "cliJS/fastOptJS"
|
||||
|
||||
- name: Upload compiled aqua
|
||||
@ -94,7 +103,7 @@ jobs:
|
||||
- name: Set fluence-js version from branch
|
||||
if: inputs.fluence-js-version != ''
|
||||
working-directory: npm
|
||||
run: npm i --save @fluencelabs/fluence@${{ inputs.fluence-js-version }}
|
||||
run: npm i --save -E @fluencelabs/fluence@${{ inputs.fluence-js-version }}
|
||||
|
||||
- run: npm run build
|
||||
working-directory: npm
|
||||
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -37,4 +37,4 @@ jobs:
|
||||
needs: snapshot
|
||||
uses: fluencelabs/aqua-playground/.github/workflows/tests.yml@master
|
||||
with:
|
||||
aqua-version: "=${{ needs.snapshot.outputs.aqua-version }}"
|
||||
aqua-version: "${{ needs.snapshot.outputs.aqua-version }}"
|
||||
|
Loading…
Reference in New Issue
Block a user