mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
ci: update actions and build deps
This commit is contained in:
16
.github/workflows/build-android.yml
vendored
16
.github/workflows/build-android.yml
vendored
@@ -55,16 +55,16 @@ jobs:
|
||||
ref: ${{ github.event.inputs.git-ref }}
|
||||
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache yarn cache directory
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
@@ -73,13 +73,13 @@ jobs:
|
||||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: Setup Java JDK
|
||||
uses: actions/setup-java@v2
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
|
||||
- name: Cache clojure deps
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.m2/repository
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
|
||||
|
||||
- name: Setup clojure
|
||||
uses: DeLaGuardo/setup-clojure@3.5
|
||||
uses: DeLaGuardo/setup-clojure@10.1
|
||||
with:
|
||||
cli: ${{ env.CLOJURE_VERSION }}
|
||||
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
id: ref
|
||||
run: |
|
||||
pkgver=$(node ./scripts/get-pkg-version.js "${{ inputs.build-target || github.event.inputs.build-target }}")
|
||||
echo ::set-output name=version::$pkgver
|
||||
echo "version=$pkgver" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Update Nightly APP Version
|
||||
if: ${{ inputs.build-target == '' || inputs.build-target == 'nightly' || github.event.inputs.build-target == 'nightly' }}
|
||||
@@ -162,7 +162,7 @@ jobs:
|
||||
mv android/app-signed.apk ./builds/Logseq-android-${{ steps.ref.outputs.version }}.apk
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: logseq-android-builds
|
||||
path: builds
|
||||
|
||||
Reference in New Issue
Block a user