Skip to content

Commit

Permalink
Split the jobs into two files, macOS and macOS-legacy.
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Mar 22, 2024
1 parent 73787b1 commit 51e6f0e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/macos-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# GitHub Actions workflow to run tests on macOS.
name: "macOS-legacy"

on:
push: {}
pull_request: {}
schedule:
- cron: "0 0 * * 0" # At 00:00 weekly on Sunday.

concurrency:
group: "${{ github.workflow }}-${{ 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-13", "macos-12"]
arch: ["arm64", "x86_64"]
steps:
- name: "Install required packages"
run: brew install automake

- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Run tests"
run: ./scripts/test
env:
ARCH: "${{ matrix.arch }}"
OS: "${{ matrix.os }}"
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["macos-14", "macos-13", "macos-12"]
os: ["macos-14"]
arch: ["arm64", "x86_64"]
steps:
- name: "Install required packages"
Expand Down

0 comments on commit 51e6f0e

Please sign in to comment.