Skip to content

Commit d38bf03

Browse files
committed
Trying alternate macOS config for openmp
1 parent ccb3bd3 commit d38bf03

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- { name: container, os: ubuntu-latest, container: rocker/r2u4ci }
1818
- { name: macos, os: macos-latest, openmp: yes }
1919
- { name: macos, os: macos-latest, openmp: no }
20+
- { name: macos, os: macos-latest, openmp: alt }
2021
#- { name: ubuntu, os: ubuntu-latest }
2122

2223

@@ -39,17 +40,24 @@ jobs:
3940
CPPFLAGS += -Xclang -fopenmp
4041
LDFLAGS += -lomp
4142
EOF
42-
43-
- name: Show config on macOS
44-
if: ${{ matrix.os == 'macos-latest' && matrix.openmp == 'yes' }}
45-
run: |
4643
cat ~/.R/Makevars
4744
echo -n "R CMD config CXX: "; R CMD config CXX
4845
echo -n "R CMD config CPPFLAGS: "; R CMD config CPPFLAGS
4946
echo -n "R CMD config LDFLAGS: "; R CMD config LDFLAGS
5047
echo -n "R CMD config SHLIB_CXXLD: "; R CMD config SHLIB_CXXLD
5148
echo -n "R CMD config SHLIB_CXXLDFLAGS: "; R CMD config SHLIB_CXXLDFLAGS
5249
50+
- name: Alternate OpenMP for macOS
51+
if: ${{ matrix.os == 'macos-latest' && matrix.openmp == 'alt' }}
52+
run: |
53+
curl -O https://mac.r-project.org/openmp/openmp-17.0.6-darwin20-Release.tar.gz
54+
sudo tar fvxz openmp-17.0.6-darwin20-Release.tar.gz -C /
55+
rm openmp-17.0.6-darwin20-Release.tar.gz
56+
sudo xcode-select -s /Applications/Xcode_16.2.app
57+
echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV
58+
echo "xcode is set: $(xcode-select --print-path)"
59+
echo "using SDK: $(xcrun --show-sdk-version)"
60+
5361
- name: Configure
5462
run: ./configure; cat src/Makevars
5563

@@ -59,7 +67,7 @@ jobs:
5967
- name: Test
6068
run: ./run.sh run_tests
6169

62-
- name: Install
70+
- name: Install and Verify on macOS
6371
if: ${{ matrix.os == 'macos-latest' }}
6472
run: |
6573
R CMD INSTALL .

0 commit comments

Comments
 (0)