From 7c43a49046acbee943509f4ba2a477fe87758f6a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 13 Jul 2024 21:35:34 +0300 Subject: [PATCH] ci: Add workflow for building macOS x86_64 --- .github/workflows/dev.yml | 2 ++ .github/workflows/main.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 392046d2c..58e21d36a 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,6 +1,8 @@ name: Dev on: push: + branches_ignore: + - 'feature/fix_build_scripts' jobs: build_docker: name: Build Docker image diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 747432396..5498558be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,10 +3,27 @@ on: push: branches: - 'develop' + - 'feature/fix_build_scripts' env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: + build_macos_64: + name: Build macOS x86_64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up node & dependencies + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "npm" + - run: npm ci + - run: ./bin/build-mac-x64.sh + - uses: actions/upload-artifact@v4 + with: + name: trilium-mac-x64.zip + path: dist/trilium-mac-x64*.zip build_docker: name: Build Docker image runs-on: ubuntu-latest