From 688b5317c1b338a858e8769a4c6679a630992ecc Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 18 Jan 2025 20:43:26 +0200 Subject: [PATCH] refactor(ci): deduplicate dmg init --- .github/workflows/main.yml | 7 ++++--- .github/workflows/nightly.yml | 7 ++++--- .github/workflows/release.yml | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b20762de..2baa62f0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,9 +37,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: Set up Python for appdmg to be installed - if: ${{ matrix.os.name == 'macos' }} - run: brew install python-setuptools + - name: Run the build + uses: ./.github/actions/build + with: + os: ${{ matrix.os.name }} - name: Install dependencies run: npm ci - name: Update build info diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2378d9f46..df885261b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -34,9 +34,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: Set up Python for appdmg to be installed - if: ${{ matrix.os.name == 'macos' }} - run: brew install python-setuptools + - name: Run the build + uses: ./.github/actions/build + with: + os: ${{ matrix.os.name }} - name: Install dependencies run: npm ci - name: Update build info diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ea938236..25e724e4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,9 +34,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: Set up Python for appdmg to be installed - if: ${{ matrix.os.name == 'macos' }} - run: brew install python-setuptools + - name: Run the build + uses: ./.github/actions/build + with: + os: ${{ matrix.os.name }} - name: Install dependencies run: npm ci - name: Update build info