aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
blob: c619b17110e5b731e0e53b9daeef5b03a4a0da7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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-26", "macos-15", "macos-14"]
        arch: ["arm64", "x86_64"]
    steps:
    - name: "Install required packages"
      run: |
        brew install automake libtool perl cpanminus
        PERL="$(brew --prefix perl)/bin/perl"
        "$PERL" "$(command -v cpanm)" --notest IO::Socket::SSL
        echo "$(brew --prefix perl)/bin" >> "$GITHUB_PATH"
        "$PERL" -MIO::Socket::SSL::Utils -e 1

    - name: "Checkout repository"
      uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

    - name: "Run tests"
      run: ./scripts/test
      env:
        ARCH: "${{ matrix.arch }}"
        OS: "${{ matrix.os }}"