Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: |
echo "ENABLE_FILE_SYNC_PRODUCTION=${{ inputs.enable-file-sync-production || github.event.inputs.enable-file-sync-production || inputs.build-target == '' }}" >> $GITHUB_ENV

- name: Compile CLJS - app variant, use es6 instead of es-next
- name: Compile CLJS - app variant
run: yarn install && yarn release-app
env:
LOGSEQ_SENTRY_DSN: ${{ secrets.LOGSEQ_SENTRY_DSN }}
Expand All @@ -127,7 +127,7 @@ jobs:
- name: Upload Sentry Sourcemaps (beta only)
if: ${{ github.repository == 'logseq/og' && (inputs.build-target == 'beta' || github.event.inputs.build-target == 'beta') }}
run: |
curl -sL https://sentry.io/get-cli/ | bash
curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION=2.58.4 bash
release_name="logseq-android@${{ steps.ref.outputs.version }}"
sentry-cli releases new "${release_name}"
sentry-cli releases files "${release_name}" upload-sourcemaps --ext map --ext js ./static/js --url-prefix '~/static/js'
Expand All @@ -149,8 +149,12 @@ jobs:
- name: Sync public to Android Project
run: npx cap sync android

# Google stopped serving the obsolete `tools` package; the action default
# (`tools platform-tools`) now fails with "Failed to find package 'tools'".
- name: Setup Android SDK
uses: android-actions/setup-android@v3.2.2
with:
packages: platform-tools

- name: Build Android
run: |
Expand Down
31 changes: 26 additions & 5 deletions .github/workflows/build-desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Upload Sentry Sourcemaps (beta only)
if: ${{ github.repository == 'logseq/og' && github.event_name == 'workflow_dispatch' && github.event.inputs.build-target == 'beta' }}
run: |
curl -sL https://sentry.io/get-cli/ | bash
curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION=2.58.4 bash
release_name="logseq@${{ steps.ref.outputs.version }}"
sentry-cli releases new "${release_name}"
sentry-cli releases files "${release_name}" upload-sourcemaps --ext map --ext js ./static/js --url-prefix '~/static/js'
Expand Down Expand Up @@ -347,6 +347,22 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Configure Windows build tools
shell: pwsh
run: |
$npmDir = Join-Path (Split-Path (Get-Command node).Source) "node_modules\npm"
npm install --prefix $npmDir node-gyp@^12.2.0 --no-audit --no-fund
node "$npmDir\node_modules\node-gyp\bin\node-gyp.js" --version
$wixBin = "C:\Program Files (x86)\WiX Toolset v3.14\bin"
if (Test-Path $wixBin) {
echo $wixBin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
}

# - name: Cache Node Modules
# uses: actions/cache@v4
# with:
Expand Down Expand Up @@ -479,7 +495,7 @@ jobs:

build-macos-arm64:
needs: [ compile-cljs ]
runs-on: macos-14
runs-on: macos-15

steps:
- name: Download The Static Asset
Expand Down Expand Up @@ -604,6 +620,7 @@ jobs:

- name: Download Android Artifacts
uses: actions/download-artifact@v4
if: ${{ github.event_name == 'schedule' || github.event.inputs.build-android == 'true' }}
with:
name: logseq-og-android-builds
path: ./
Expand All @@ -613,14 +630,16 @@ jobs:
sha256sum *-darwin-* > SHA256SUMS.txt
sha256sum *-win-* >> SHA256SUMS.txt
sha256sum *-linux-* >> SHA256SUMS.txt
sha256sum *.apk >> SHA256SUMS.txt
if ls *.apk 1>/dev/null 2>&1; then
sha256sum *.apk >> SHA256SUMS.txt
fi
cat SHA256SUMS.txt

- name: List files
run: ls -rl

- name: Update Nightly Release
uses: andelf/nightly-release@main
uses: andelf/nightly-release@5834076edc55cc05975561c9722043f072ac5c26 # main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -700,7 +719,9 @@ jobs:
sha256sum *-darwin-* > SHA256SUMS.txt
sha256sum *-win-* >> SHA256SUMS.txt
sha256sum *-linux-* >> SHA256SUMS.txt
sha256sum *.apk >> SHA256SUMS.txt
if ls *.apk 1>/dev/null 2>&1; then
sha256sum *.apk >> SHA256SUMS.txt
fi
sha256sum RELEASES >> SHA256SUMS.txt
cat SHA256SUMS.txt

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-ios-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
build-app:
runs-on: macos-13
runs-on: macos-15
steps:
- name: Check out Git repository
uses: actions/checkout@v4
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/build-ios.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"cljs:electron-watch": "clojure -M:cljs watch app electron --config-merge \"{:asset-path \\\"./js\\\"}\"",
"cljs:release": "clojure -M:cljs release app publishing electron",
"cljs:release-electron": "clojure -M:cljs release app electron --debug && clojure -M:cljs release publishing",
"cljs:release-app": "clojure -M:cljs release app --config-merge \"{:compiler-options {:output-feature-set :es6}}\"",
"cljs:release-app": "clojure -M:cljs release app",
"cljs:release-publishing": "clojure -M:cljs release publishing",
"cljs:test": "clojure -M:test compile test",
"cljs:run-test": "node static/tests.js",
Expand Down
2 changes: 1 addition & 1 deletion resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"resolutions": {
"**/electron": "43.4.1",
"**/node-abi": "4.33.0",
"**/node-gyp": "12.0.0",
"**/node-gyp": "^12.2.0",
"string-width": "4.2.0",
"wrap-ansi": "^7.0.0",
"strip-ansi": "^6.0.1"
Expand Down
Loading
Loading