瀏覽代碼

ci: update actions and build deps

Andelf 2 年之前
父節點
當前提交
f6d4560044

+ 8 - 8
.github/workflows/build-android.yml

@@ -55,16 +55,16 @@ jobs:
           ref: ${{ github.event.inputs.git-ref }}
           ref: ${{ github.event.inputs.git-ref }}
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       - name: Get yarn cache directory path
       - name: Get yarn cache directory path
         id: yarn-cache-dir-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
       - name: Cache yarn cache directory
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: yarn-cache
         id: yarn-cache
         with:
         with:
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -73,13 +73,13 @@ jobs:
             ${{ runner.os }}-yarn-
             ${{ runner.os }}-yarn-
 
 
       - name: Setup Java JDK
       - name: Setup Java JDK
-        uses: actions/setup-java@v2
+        uses: actions/setup-java@v3
         with:
         with:
           distribution: 'zulu'
           distribution: 'zulu'
           java-version: ${{ env.JAVA_VERSION }}
           java-version: ${{ env.JAVA_VERSION }}
 
 
       - name: Cache clojure deps
       - name: Cache clojure deps
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
         with:
           path: |
           path: |
             ~/.m2/repository
             ~/.m2/repository
@@ -87,7 +87,7 @@ jobs:
           key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
           key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
 
 
       - name: Setup clojure
       - name: Setup clojure
-        uses: DeLaGuardo/setup-clojure@3.5
+        uses: DeLaGuardo/setup-clojure@10.1
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
 
 
@@ -95,7 +95,7 @@ jobs:
         id: ref
         id: ref
         run: |
         run: |
           pkgver=$(node ./scripts/get-pkg-version.js "${{ inputs.build-target || github.event.inputs.build-target }}")
           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
       - name: Update Nightly APP Version
         if: ${{ inputs.build-target == '' || inputs.build-target == 'nightly' || github.event.inputs.build-target == 'nightly' }}
         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
           mv android/app-signed.apk ./builds/Logseq-android-${{ steps.ref.outputs.version }}.apk
 
 
       - name: Upload Artifact
       - name: Upload Artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
         with:
           name: logseq-android-builds
           name: logseq-android-builds
           path: builds
           path: builds

+ 47 - 47
.github/workflows/build-desktop-release.yml

@@ -49,6 +49,7 @@ on:
 env:
 env:
   CLOJURE_VERSION: '1.10.1.763'
   CLOJURE_VERSION: '1.10.1.763'
   NODE_VERSION: '18'
   NODE_VERSION: '18'
+  JAVA_VERSION: '11'
 
 
 jobs:
 jobs:
   compile-cljs:
   compile-cljs:
@@ -61,21 +62,21 @@ jobs:
           exit 1
           exit 1
 
 
       - name: Check out Git repository
       - name: Check out Git repository
-        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c  # v3.3.0
+        uses: actions/checkout@v3
         with:
         with:
           ref: ${{ github.event.inputs.git-ref }}
           ref: ${{ github.event.inputs.git-ref }}
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       - name: Get yarn cache directory path
       - name: Get yarn cache directory path
         id: yarn-cache-dir-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
       - name: Cache yarn cache directory
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: yarn-cache
         id: yarn-cache
         with:
         with:
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -84,12 +85,13 @@ jobs:
             ${{ runner.os }}-yarn-
             ${{ runner.os }}-yarn-
 
 
       - name: Setup Java JDK
       - name: Setup Java JDK
-        uses: actions/setup-java@v1.4.3
+        uses: actions/setup-java@v3
         with:
         with:
-          java-version: 1.8
+          distribution: 'zulu'
+          java-version: ${{ env.JAVA_VERSION }}
 
 
       - name: Cache clojure deps
       - name: Cache clojure deps
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
         with:
           path: |
           path: |
             ~/.m2/repository
             ~/.m2/repository
@@ -97,7 +99,7 @@ jobs:
           key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
           key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
 
 
       - name: Setup clojure
       - name: Setup clojure
-        uses: DeLaGuardo/setup-clojure@3.5
+        uses: DeLaGuardo/setup-clojure@10.1
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
 
 
@@ -105,7 +107,7 @@ jobs:
         id: ref
         id: ref
         run: |
         run: |
           pkgver=$(node ./scripts/get-pkg-version.js "${{ github.event.inputs.build-target }}")
           pkgver=$(node ./scripts/get-pkg-version.js "${{ github.event.inputs.build-target }}")
-          echo ::set-output name=version::$pkgver
+          echo "version=$pkgver" >> $GITHUB_OUTPUT
 
 
       - name: Do Not Overwrite Existing Release
       - name: Do Not Overwrite Existing Release
         if: ${{ github.event.inputs.build-target == 'beta' }}
         if: ${{ github.event.inputs.build-target == 'beta' }}
@@ -164,7 +166,7 @@ jobs:
           SENTRY_PROJECT: logseq
           SENTRY_PROJECT: logseq
 
 
       - name: Cache Static File
       - name: Cache Static File
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
         with:
           name: static
           name: static
           path: static
           path: static
@@ -174,7 +176,7 @@ jobs:
     needs: [ compile-cljs ]
     needs: [ compile-cljs ]
     steps:
     steps:
       - name: Download The Static Asset
       - name: Download The Static Asset
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: static
           name: static
           path: static
           path: static
@@ -183,15 +185,15 @@ jobs:
         id: ref
         id: ref
         run: |
         run: |
           pkgver=$(cat ./static/VERSION)
           pkgver=$(cat ./static/VERSION)
-          echo ::set-output name=version::$pkgver
+          echo "version=$pkgver" >> $GITHUB_OUTPUT
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       # - name: Cache Node Modules
       # - name: Cache Node Modules
-      #   uses: actions/cache@v2
+      #   uses: actions/cache@v3
       #   with:
       #   with:
       #     path: |
       #     path: |
       #       **/node_modules
       #       **/node_modules
@@ -210,7 +212,7 @@ jobs:
           mv static/out/make/zip/linux/x64/*-linux-x64-*.zip ./builds/Logseq-linux-x64-${{ steps.ref.outputs.version }}.zip
           mv static/out/make/zip/linux/x64/*-linux-x64-*.zip ./builds/Logseq-linux-x64-${{ steps.ref.outputs.version }}.zip
 
 
       - name: Upload Artifact
       - name: Upload Artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
         with:
           name: logseq-linux-builds
           name: logseq-linux-builds
           path: builds
           path: builds
@@ -220,24 +222,22 @@ jobs:
     needs: [ compile-cljs ]
     needs: [ compile-cljs ]
     steps:
     steps:
       - name: Download The Static Asset
       - name: Download The Static Asset
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: static
           name: static
           path: static
           path: static
 
 
       - name: Retrieve tag version
       - name: Retrieve tag version
         id: ref
         id: ref
-        run: |
-          $env:PkgVer=$(cat ./static/VERSION)
-          echo "::set-output name=version::$env:PkgVer"
+        run: echo "version=$(cat ./static/VERSION)" >> $env:GITHUB_OUTPUT
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       # - name: Cache Node Modules
       # - name: Cache Node Modules
-      #   uses: actions/cache@v2
+      #   uses: actions/cache@v3
       #   with:
       #   with:
       #    path: |
       #    path: |
       #      **/node_modules
       #      **/node_modules
@@ -273,7 +273,7 @@ jobs:
           mv static\out\make\squirrel.windows\x64\RELEASES builds\RELEASES
           mv static\out\make\squirrel.windows\x64\RELEASES builds\RELEASES
 
 
       - name: Upload Artifact
       - name: Upload Artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
         with:
           name: logseq-win64-builds
           name: logseq-win64-builds
           path: builds
           path: builds
@@ -284,7 +284,7 @@ jobs:
 
 
     steps:
     steps:
       - name: Download The Static Asset
       - name: Download The Static Asset
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: static
           name: static
           path: static
           path: static
@@ -293,21 +293,21 @@ jobs:
         id: ref
         id: ref
         run: |
         run: |
           pkgver=$(cat ./static/VERSION)
           pkgver=$(cat ./static/VERSION)
-          echo ::set-output name=version::$pkgver
+          echo "version=$pkgver" >> $GITHUB_OUTPUT
 
 
       - name: List Static Files
       - name: List Static Files
         run: ls -al ./static
         run: ls -al ./static
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       - name: Get yarn cache directory path
       - name: Get yarn cache directory path
         id: yarn-cache-dir-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
       - name: Cache yarn cache directory
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: yarn-cache
         id: yarn-cache
         with:
         with:
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -323,7 +323,7 @@ jobs:
           p12-password: ${{ secrets.APPLE_CERTIFICATES_P12_PASSWORD }}
           p12-password: ${{ secrets.APPLE_CERTIFICATES_P12_PASSWORD }}
 
 
       # - name: Cache Node Modules
       # - name: Cache Node Modules
-      #   uses: actions/cache@v2
+      #   uses: actions/cache@v3
       #   with:
       #   with:
       #     path: |
       #     path: |
       #       **/node_modules
       #       **/node_modules
@@ -344,7 +344,7 @@ jobs:
           mv static/out/make/zip/darwin/x64/*.zip ./builds/Logseq-darwin-x64-${{ steps.ref.outputs.version }}.zip
           mv static/out/make/zip/darwin/x64/*.zip ./builds/Logseq-darwin-x64-${{ steps.ref.outputs.version }}.zip
 
 
       - name: Upload Artifact
       - name: Upload Artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
         with:
           name: logseq-darwin-x64-builds
           name: logseq-darwin-x64-builds
           path: builds
           path: builds
@@ -355,7 +355,7 @@ jobs:
 
 
     steps:
     steps:
       - name: Download The Static Asset
       - name: Download The Static Asset
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: static
           name: static
           path: static
           path: static
@@ -364,18 +364,18 @@ jobs:
         id: ref
         id: ref
         run: |
         run: |
           pkgver=$(cat ./static/VERSION)
           pkgver=$(cat ./static/VERSION)
-          echo ::set-output name=version::$pkgver
+          echo "version=$pkgver" >> $GITHUB_OUTPUT
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       - name: Get yarn cache directory path
       - name: Get yarn cache directory path
         id: yarn-cache-dir-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
       - name: Cache yarn cache directory
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: yarn-cache
         id: yarn-cache
         with:
         with:
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -391,7 +391,7 @@ jobs:
           p12-password: ${{ secrets.APPLE_CERTIFICATES_P12_PASSWORD }}
           p12-password: ${{ secrets.APPLE_CERTIFICATES_P12_PASSWORD }}
 
 
       # - name: Cache Node Modules
       # - name: Cache Node Modules
-      #   uses: actions/cache@v2
+      #   uses: actions/cache@v3
       #   with:
       #   with:
       #     path: |
       #     path: |
       #       **/node_modules
       #       **/node_modules
@@ -416,7 +416,7 @@ jobs:
           mv static/out/make/zip/darwin/arm64/*.zip ./builds/Logseq-darwin-arm64-${{ steps.ref.outputs.version }}.zip
           mv static/out/make/zip/darwin/arm64/*.zip ./builds/Logseq-darwin-arm64-${{ steps.ref.outputs.version }}.zip
 
 
       - name: Upload Artifact
       - name: Upload Artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
         with:
           name: logseq-darwin-arm64-builds
           name: logseq-darwin-arm64-builds
           path: builds
           path: builds
@@ -440,31 +440,31 @@ jobs:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
     steps:
     steps:
       - name: Download MacOS x64 Artifacts
       - name: Download MacOS x64 Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-darwin-x64-builds
           name: logseq-darwin-x64-builds
           path: ./
           path: ./
 
 
       - name: Download MacOS arm64 Artifacts
       - name: Download MacOS arm64 Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-darwin-arm64-builds
           name: logseq-darwin-arm64-builds
           path: ./
           path: ./
 
 
       - name: Download The Linux Artifacts
       - name: Download The Linux Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-linux-builds
           name: logseq-linux-builds
           path: ./
           path: ./
 
 
       - name: Download The Windows Artifact
       - name: Download The Windows Artifact
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-win64-builds
           name: logseq-win64-builds
           path: ./
           path: ./
 
 
       - name: Download Android Artifacts
       - name: Download Android Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-android-builds
           name: logseq-android-builds
           path: ./
           path: ./
@@ -509,31 +509,31 @@ jobs:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
     steps:
     steps:
       - name: Download MacOS x64 Artifacts
       - name: Download MacOS x64 Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-darwin-x64-builds
           name: logseq-darwin-x64-builds
           path: ./
           path: ./
 
 
       - name: Download MacOS arm64 Artifacts
       - name: Download MacOS arm64 Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-darwin-arm64-builds
           name: logseq-darwin-arm64-builds
           path: ./
           path: ./
 
 
       - name: Download The Linux Artifacts
       - name: Download The Linux Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-linux-builds
           name: logseq-linux-builds
           path: ./
           path: ./
 
 
       - name: Download The Windows Artifact
       - name: Download The Windows Artifact
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
         with:
           name: logseq-win64-builds
           name: logseq-win64-builds
           path: ./
           path: ./
 
 
       - name: Download Android Artifacts
       - name: Download Android Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         if: ${{ github.event_name == 'schedule' || github.event.inputs.build-android == 'true' }}
         if: ${{ github.event_name == 'schedule' || github.event.inputs.build-android == 'true' }}
         with:
         with:
           name: logseq-android-builds
           name: logseq-android-builds
@@ -546,7 +546,7 @@ jobs:
         id: ref
         id: ref
         run: |
         run: |
           pkgver=$(cat VERSION)
           pkgver=$(cat VERSION)
-          echo ::set-output name=version::$pkgver
+          echo "version=$pkgver" >> $GITHUB_OUTPUT
 
 
       - name: Fix .nupkg name in RELEASES file
       - name: Fix .nupkg name in RELEASES file
         run: |
         run: |

+ 1 - 1
.github/workflows/build-docker.yml

@@ -7,7 +7,7 @@ on:
     types: [released]
     types: [released]
 
 
 env:
 env:
-  CLOJURE_VERSION: '1.10.1.727'
+  CLOJURE_VERSION: '1.10.1.763'
 
 
 jobs:
 jobs:
 
 

+ 6 - 6
.github/workflows/build-ios.yml

@@ -28,16 +28,16 @@ jobs:
         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c  # v3.3.0
         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c  # v3.3.0
 
 
       - name: Install Node.js, NPM and Yarn
       - name: Install Node.js, NPM and Yarn
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
 
 
       - name: Get yarn cache directory path
       - name: Get yarn cache directory path
         id: yarn-cache-dir-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
       - name: Cache yarn cache directory
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: yarn-cache
         id: yarn-cache
         with:
         with:
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -46,13 +46,13 @@ jobs:
             ${{ runner.os }}-yarn-
             ${{ runner.os }}-yarn-
 
 
       - name: Setup Java JDK
       - name: Setup Java JDK
-        uses: actions/setup-java@v2
+        uses: actions/setup-java@v3
         with:
         with:
           distribution: 'zulu'
           distribution: 'zulu'
           java-version: ${{ env.JAVA_VERSION }}
           java-version: ${{ env.JAVA_VERSION }}
 
 
       - name: Cache clojure deps
       - name: Cache clojure deps
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
         with:
           path: |
           path: |
             ~/.m2/repository
             ~/.m2/repository
@@ -60,7 +60,7 @@ jobs:
           key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
           key: ${{ runner.os }}-clojure-lib-${{ hashFiles('**/deps.edn') }}
 
 
       - name: Setup clojure
       - name: Setup clojure
-        uses: DeLaGuardo/setup-clojure@3.5
+        uses: DeLaGuardo/setup-clojure@10.1
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
 
 

+ 1 - 1
.github/workflows/build-stage.yml

@@ -23,7 +23,7 @@ jobs:
           java-version: 1.8
           java-version: 1.8
 
 
       - name: Set up Node
       - name: Set up Node
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
             node-version: 18
             node-version: 18
 
 

+ 3 - 5
.github/workflows/build.yml

@@ -11,10 +11,8 @@ on:
       - '*.md'
       - '*.md'
 
 
 env:
 env:
-  CLOJURE_VERSION: '1.10.1.727'
-  # setup-java@v2 dropped support for legacy Java version syntax.
-  # This is the same as 1.8.
-  JAVA_VERSION: '8'
+  CLOJURE_VERSION: '1.10.1.763'
+  JAVA_VERSION: '11'
   # This is the latest node version we can run.
   # This is the latest node version we can run.
   NODE_VERSION: '18'
   NODE_VERSION: '18'
   BABASHKA_VERSION: '1.0.168'
   BABASHKA_VERSION: '1.0.168'
@@ -136,7 +134,7 @@ jobs:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
 
 
       - name: Clojure cache
       - name: Clojure cache
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: clojure-deps
         id: clojure-deps
         with:
         with:
           path: |
           path: |

+ 4 - 5
.github/workflows/db.yml

@@ -20,9 +20,8 @@ defaults:
     working-directory: deps/db
     working-directory: deps/db
 
 
 env:
 env:
-  CLOJURE_VERSION: '1.10.1.727'
-  # This is the same as 1.8.
-  JAVA_VERSION: '8'
+  CLOJURE_VERSION: '1.10.1.763'
+  JAVA_VERSION: '11'
   # This is the latest node version we can run.
   # This is the latest node version we can run.
   NODE_VERSION: '18'
   NODE_VERSION: '18'
   BABASHKA_VERSION: '1.0.168'
   BABASHKA_VERSION: '1.0.168'
@@ -49,7 +48,7 @@ jobs:
           java-version: ${{ env.JAVA_VERSION }}
           java-version: ${{ env.JAVA_VERSION }}
 
 
       - name: Set up Clojure
       - name: Set up Clojure
-        uses: DeLaGuardo/setup-clojure@master
+        uses: DeLaGuardo/setup-clojure@10.1
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
           bb: ${{ env.BABASHKA_VERSION }}
           bb: ${{ env.BABASHKA_VERSION }}
@@ -75,7 +74,7 @@ jobs:
           java-version: ${{ env.JAVA_VERSION }}
           java-version: ${{ env.JAVA_VERSION }}
 
 
       - name: Set up Clojure
       - name: Set up Clojure
-        uses: DeLaGuardo/setup-clojure@master
+        uses: DeLaGuardo/setup-clojure@10.1
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
           bb: ${{ env.BABASHKA_VERSION }}
           bb: ${{ env.BABASHKA_VERSION }}

+ 8 - 10
.github/workflows/e2e.yml

@@ -15,10 +15,8 @@ on:
       - 'e2e-tests/**'
       - 'e2e-tests/**'
 
 
 env:
 env:
-  CLOJURE_VERSION: '1.10.1.727'
-  # setup-java@v2 dropped support for legacy Java version syntax.
-  # This is the same as 1.8.
-  JAVA_VERSION: '8'
+  CLOJURE_VERSION: '1.10.1.763'
+  JAVA_VERSION: '11'
   # This is the latest node version we can run.
   # This is the latest node version we can run.
   NODE_VERSION: '18'
   NODE_VERSION: '18'
   BABASHKA_VERSION: '1.0.168'
   BABASHKA_VERSION: '1.0.168'
@@ -32,7 +30,7 @@ jobs:
         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c  # v3.3.0
         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c  # v3.3.0
 
 
       - name: Set up Node
       - name: Set up Node
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
           cache: 'yarn'
           cache: 'yarn'
@@ -41,18 +39,18 @@ jobs:
             static/yarn.lock
             static/yarn.lock
 
 
       - name: Set up Java
       - name: Set up Java
-        uses: actions/setup-java@v2
+        uses: actions/setup-java@v3
         with:
         with:
           distribution: 'zulu'
           distribution: 'zulu'
           java-version: ${{ env.JAVA_VERSION }}
           java-version: ${{ env.JAVA_VERSION }}
 
 
       - name: Set up Clojure
       - name: Set up Clojure
-        uses: DeLaGuardo/setup-clojure@master
+        uses: DeLaGuardo/setup-clojure@10.1
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
 
 
       - name: Clojure cache
       - name: Clojure cache
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         id: clojure-deps
         id: clojure-deps
         with:
         with:
           path: |
           path: |
@@ -66,7 +64,7 @@ jobs:
         run: clojure -A:cljs -P
         run: clojure -A:cljs -P
 
 
       - name: Shadow-cljs cache
       - name: Shadow-cljs cache
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
         with:
           path: .shadow-cljs
           path: .shadow-cljs
           # ensure update cache every time
           # ensure update cache every time
@@ -121,7 +119,7 @@ jobs:
         run: tar xzf static.tar.gz
         run: tar xzf static.tar.gz
 
 
       - name: Set up Node
       - name: Set up Node
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
         with:
           node-version: ${{ env.NODE_VERSION }}
           node-version: ${{ env.NODE_VERSION }}
           cache: 'yarn'
           cache: 'yarn'

+ 2 - 2
.github/workflows/graph-parser.yml

@@ -24,9 +24,9 @@ defaults:
     working-directory: deps/graph-parser
     working-directory: deps/graph-parser
 
 
 env:
 env:
-  CLOJURE_VERSION: '1.10.1.727'
+  CLOJURE_VERSION: '1.10.1.763'
   # This is the same as 1.8.
   # This is the same as 1.8.
-  JAVA_VERSION: '8'
+  JAVA_VERSION: '11'
   # This is the latest node version we can run.
   # This is the latest node version we can run.
   NODE_VERSION: '18'
   NODE_VERSION: '18'
   BABASHKA_VERSION: '1.0.168'
   BABASHKA_VERSION: '1.0.168'

+ 2 - 2
docs/develop-logseq-on-windows.md

@@ -11,7 +11,7 @@ This is a guide on creating Logseq development environment on Windows with `Powe
 * JRE 8 (required for Clojure)
 * JRE 8 (required for Clojure)
 * Visual Studio (required for desktop app)
 * Visual Studio (required for desktop app)
 
 
-(updated 20230215. May confirm via JAVA_VERSION and NODE_VERSION in [THIS FILE](https://github.com/logseq/logseq/blob/master/.github/workflows/build.yml))
+(updated 20230221. May confirm via JAVA_VERSION and NODE_VERSION in [THIS FILE](https://github.com/logseq/logseq/blob/master/.github/workflows/build.yml))
 
 
 ### An example of installing pre-requisites on Windows
 ### An example of installing pre-requisites on Windows
 * Install [Chocolatey](https://chocolatey.org/)
 * Install [Chocolatey](https://chocolatey.org/)
@@ -30,7 +30,7 @@ Congrats! The pre-requisites are ready.
 
 
 ## Set-up development environment (web app)
 ## Set-up development environment (web app)
 
 
-The basic idea is replacing the `clojure` commands in [package.json](https://github.com/logseq/logseq/blob/master/package.json) to `clj`.  
+The basic idea is replacing the `clojure` commands in [package.json](https://github.com/logseq/logseq/blob/master/package.json) to `clj`.
 Go to your cloned Logseq repo. Then install dependencies, execute the `clj` equivalent of `yarn watch`. Refer [THIS](#an-example-of-setting-up-proxy-in-powershell) if you want to setup proxy in `PowerShell`.
 Go to your cloned Logseq repo. Then install dependencies, execute the `clj` equivalent of `yarn watch`. Refer [THIS](#an-example-of-setting-up-proxy-in-powershell) if you want to setup proxy in `PowerShell`.
 
 
 * Copy files in `resources` to `static`
 * Copy files in `resources` to `static`