Skip to content

Build Arch64 Mac builds on M1 machines and prevent conflicts between outputted DMGs #397

Build Arch64 Mac builds on M1 machines and prevent conflicts between outputted DMGs

Build Arch64 Mac builds on M1 machines and prevent conflicts between outputted DMGs #397

Workflow file for this run

name: Build and lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Static checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm
- name: Install
run: pnpm install
- name: Build and lint
run: pnpm run ci
changes:
name: Check changed files
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
config: ${{ steps.filter.outputs.config }}
steps:
- uses: actions/checkout@v3
if: ${{ github.event_name == 'push' }}
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
config:
- package.json
- tsconfig.json
- forge.config.js
make:
name: Make (${{ matrix.os }} - ${{ matrix.arch }})
if: ${{ needs.changes.outputs.config == 'true' }}
needs: changes
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-13-xlarge, macOS-latest, ubuntu-latest, windows-latest ]
arch: [ x64, arm64 ]
# On Windows we only support x86 builds
exclude:
- os: windows-latest
arch: arm64
# Only build arm64 build on M1 and x86 build on Intel Mac
- os: macOS-latest
arch: arm64
- os: macOS-13-xlarge
arch: x64
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm
- name: Install
run: pnpm install
- name: Make
run: pnpm run make