ci: add macos-15-intel to matrix (#4968)

And fix a stupid typo that made GHA skip running the tests 🤦
This commit is contained in:
Ben Noordhuis 2025-12-10 20:43:08 +01:00 committed by GitHub
parent 504887a339
commit ac591507f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View File

@ -80,7 +80,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-15]
os: [macos-14, macos-15, macos-15-intel]
steps:
- uses: actions/checkout@v6
- name: Envinfo
@ -107,11 +107,11 @@ jobs:
run: |
./build/uv_run_tests_a platform_output
- name: Test
if: ${{ maxtrix.os == 'macos-15' }}
if: ${{ matrix.os == 'macos-15' || matrix.os == 'macos-15-intel' }}
run: |
cd build && sudo UV_RUN_AS_ROOT=1 ctest -V
- name: Test
if: ${{ maxtrix.os != 'macos-15' }}
if: ${{ matrix.os != 'macos-15' && matrix.os != 'macos-15-intel' }}
run: |
cd build && ctest -V
- name: Autotools configure

View File

@ -220,8 +220,13 @@ TEST_IMPL(fs_copyfile) {
r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL);
/* On IBMi PASE, qsecofr users can overwrite read-only files */
# ifndef __PASE__
if (0 == getuid()) { /* If root. */
ASSERT_EQ(req.result, 0);
ASSERT_EQ(r, 0);
} else {
ASSERT_EQ(req.result, UV_EACCES);
ASSERT_EQ(r, UV_EACCES);
}
# endif
uv_fs_req_cleanup(&req);
#endif