Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(ci): build server for Linux ARM
Elian Dorana2b6504d9db0
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.ymlindex f040eeecb6..2378d9f469 100644--- a/.github/workflows/nightly.yml+++ b/.github/workflows/nightly.yml@@ -92,7 +92,16 @@ jobs:asset_content_type: application/zip # required by GitHub APInightly-server:name: Deploy server nightly- runs-on: ubuntu-latest+ strategy:+ fail-fast: false+ matrix:+ arch: [x64, arm64]+ include:+ - arch: x64+ runs-on: ubuntu-latest+ - arch: arm64+ runs-on: ubuntu-24.04-arm+ runs-on: ${{ matrix.runs-on }}steps:- uses: actions/checkout@v4- name: Set up node & dependencies@@ -102,22 +111,21 @@ jobs:cache: "npm"- name: Install dependenciesrun: npm ci- - name: Run Linux server build (x86_64)+ - name: Run Linux server build+ env:+ MATRIX_ARCH: ${{ matrix.arch }}run: |npm run update-build-info- npm run ci-update-nightly-version./bin/build-server.sh- name: Prepare artifacts- if: runner.os != 'windows'run: |mkdir -p uploadfile=$(find dist -name '*.tar.xz' -print -quit)- cp "$file" "upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz"+ cp "$file" "upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz"- uses: actions/upload-artifact@v4with:- name: TriliumNextNotes linux server x64- path: upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz- overwrite: true+ name: TriliumNextNotes linux server ${{ matrix.arch }}+ path: upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz- name: Deploy releaseuses: WebFreak001/[email protected]diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0e12396251..8ea9382363 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -66,8 +66,17 @@ jobs:fail_on_unmatched_files: truefiles: upload/*.*build_linux_server-x64:- name: Build Linux Server x86_64- runs-on: ubuntu-latest+ name: Build Linux Server+ strategy:+ fail-fast: false+ matrix:+ arch: [x64, arm64]+ include:+ - arch: x64+ runs-on: ubuntu-latest+ - arch: arm64+ runs-on: ubuntu-24.04-arm+ runs-on: ${{ matrix.runs-on }}steps:- uses: actions/checkout@v4- name: Set up node & dependencies@@ -77,16 +86,17 @@ jobs:cache: "npm"- name: Install dependenciesrun: npm ci- - name: Run Linux server build (x86_64)+ - name: Run Linux server build+ env:+ MATRIX_ARCH: ${{ matrix.arch }}run: |npm run update-build-info./bin/build-server.sh- name: Prepare artifacts- if: runner.os != 'windows'run: |mkdir -p uploadfile=$(find dist -name '*.tar.xz' -print -quit)- cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-server-linux-x64.tar.xz"+ cp "$file" "upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz"- name: Publish releaseuses: softprops/action-gh-release@v2with: