Skip to content

Add a nightly job to build for MacOS #2

Add a nightly job to build for MacOS

Add a nightly job to build for MacOS #2

Workflow file for this run

# Copyright lowRISC contributors.
#
# SPDX-License-Identifier: MIT
# Nightly CI trying to build packages for MacOS.
#
# Since lowRISC primarily use Linux for development, we support MacOS for best-effort basis.
# Pull requests don't need to be working on MacOS to be merged.
name: Nightly
on:
schedule:
- cron: "0 4 * * *"
# Allow manual trigger
workflow_dispatch:
pull_request:
branches: ["main"]
# Cancel existing runs if a pull request is pushed.
# For branch pushes, this will queue a new run and not cancel the existing one. This allows the cache
# of the run to be used by the new run.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
strategy:
matrix:
include:
- system: x86_64-darwin
runs-on: macos-13
- system: aarch64-darwin
runs-on: macos-14
name: Build for ${{ matrix.system }}
uses: ./.github/workflows/build.yml
with:
system: ${{ matrix.system }}
runs-on: ${{ matrix.runs-on }}
continue-on-error: true
secrets: inherit