diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/macos.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..e813191 --- /dev/null +++ b/.github/workflows/macos.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | # GitHub Actions workflow to run tests on macOS. | ||
2 | name: "macOS" | ||
3 | |||
4 | on: | ||
5 | push: {} | ||
6 | pull_request: {} | ||
7 | schedule: | ||
8 | - cron: "0 0 * * 0" # At 00:00 weekly on Sunday. | ||
9 | |||
10 | jobs: | ||
11 | test: | ||
12 | name: "${{ matrix.os }}/${{ matrix.arch }}" | ||
13 | runs-on: "${{ matrix.os }}" | ||
14 | permissions: | ||
15 | contents: read | ||
16 | strategy: | ||
17 | fail-fast: false | ||
18 | matrix: | ||
19 | os: ["macos-13", "macos-12"] | ||
20 | arch: ["arm64", "x86_64"] | ||
21 | steps: | ||
22 | - name: "Install required packages" | ||
23 | run: brew install automake | ||
24 | |||
25 | - name: "Checkout repository" | ||
26 | uses: actions/checkout@v4 | ||
27 | |||
28 | - name: "Run tests" | ||
29 | run: ./scripts/test | ||
30 | env: | ||
31 | ARCH: "${{ matrix.arch }}" | ||