mirror of
https://github.com/libressl/portable.git
synced 2026-01-17 21:51:17 +01:00
38 lines
956 B
YAML
38 lines
956 B
YAML
# GitHub Actions workflow to run tests on macOS.
|
|
name: "macOS"
|
|
|
|
on:
|
|
push: {}
|
|
pull_request: {}
|
|
schedule:
|
|
- cron: "0 0 * * 0" # At 00:00 weekly on Sunday.
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: "${{ matrix.os }}/${{ matrix.arch }}"
|
|
runs-on: "${{ matrix.os }}"
|
|
if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }}
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ["macos-15", "macos-14"]
|
|
arch: ["arm64", "x86_64"]
|
|
steps:
|
|
- name: "Install required packages"
|
|
run: brew install automake libtool
|
|
|
|
- name: "Checkout repository"
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: "Run tests"
|
|
run: ./scripts/test
|
|
env:
|
|
ARCH: "${{ matrix.arch }}"
|
|
OS: "${{ matrix.os }}"
|