diff options
| author | Brent Cook <busterb@gmail.com> | 2023-11-08 06:54:02 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-11-08 06:54:02 -0600 |
| commit | e3fe37956fecde300ff3bf51d08f357553bb0b9e (patch) | |
| tree | 4dce94ab4beb519d396ec9644bacb99abd4176ff /.github/workflows | |
| parent | 43cb91c947421c2dba6bc2f2104aa0b5aec80006 (diff) | |
| parent | 59c22267b9edeaa7200033bc3c5368404127947e (diff) | |
| download | portable-e3fe37956fecde300ff3bf51d08f357553bb0b9e.tar.gz portable-e3fe37956fecde300ff3bf51d08f357553bb0b9e.tar.bz2 portable-e3fe37956fecde300ff3bf51d08f357553bb0b9e.zip | |
Land #942, clean up macOS workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/macos.yml | 31 | ||||
| -rw-r--r-- | .github/workflows/macos_test.yml | 21 |
2 files changed, 31 insertions, 21 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 }}" | ||
diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml deleted file mode 100644 index 9f88d77..0000000 --- a/.github/workflows/macos_test.yml +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | name: macos_ci | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | build-native: | ||
| 7 | strategy: | ||
| 8 | matrix: | ||
| 9 | os: [macos-13, macos-12] | ||
| 10 | arch: [arm64, x86_64] | ||
| 11 | runs-on: ${{ matrix.os }} | ||
| 12 | continue-on-error: false | ||
| 13 | env: | ||
| 14 | ARCH: ${{ matrix.arch }} | ||
| 15 | name: ${{ matrix.os }} - ${{ matrix.arch }} | ||
| 16 | steps: | ||
| 17 | - name: Install packages for macos | ||
| 18 | run: brew install automake | ||
| 19 | - uses: actions/checkout@main | ||
| 20 | - name: Run CI script | ||
| 21 | run: ./scripts/test | ||
