From 59c22267b9edeaa7200033bc3c5368404127947e Mon Sep 17 00:00:00 2001 From: Joshua Sing Date: Wed, 8 Nov 2023 18:55:38 +1100 Subject: [PATCH] ci: clean up macOS workflow --- .github/workflows/macos.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/macos_test.yml | 21 --------------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/macos.yml delete mode 100644 .github/workflows/macos_test.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000000..e813191d9e --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,31 @@ +# 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. + +jobs: + test: + name: "${{ matrix.os }}/${{ matrix.arch }}" + runs-on: "${{ matrix.os }}" + 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 }}" diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml deleted file mode 100644 index 9f88d77dcd..0000000000 --- a/.github/workflows/macos_test.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: macos_ci - -on: [push, pull_request] - -jobs: - build-native: - strategy: - matrix: - os: [macos-13, macos-12] - arch: [arm64, x86_64] - runs-on: ${{ matrix.os }} - continue-on-error: false - env: - ARCH: ${{ matrix.arch }} - name: ${{ matrix.os }} - ${{ matrix.arch }} - steps: - - name: Install packages for macos - run: brew install automake - - uses: actions/checkout@main - - name: Run CI script - run: ./scripts/test