1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+
19
+ # NOTE: must set "Crossbow" as name to have the badge links working in the
20
+ # github comment reports!
21
+ name : Crossbow
22
+ on :
23
+ push :
24
+ branches :
25
+ - " *-github-*"
26
+
27
+ env :
28
+ ARCHERY_DEBUG : 1
29
+
30
+
31
+ jobs :
32
+ macos-cran :
33
+ name : " macOS similar to CRAN"
34
+ runs-on : macOS-latest
35
+ strategy :
36
+ fail-fast : false
37
+
38
+ steps :
39
+ - name : Checkout Arrow
40
+ uses : actions/checkout@v4
41
+ with :
42
+ fetch-depth : 1
43
+ path : arrow
44
+ repository : apache/arrow
45
+ ref : 3c8fe098c7f5e0e40bd06bc6afca8412eb81f56e
46
+ submodules : recursive
47
+
48
+
49
+ - name : Configure dependencies (macos)
50
+ run : |
51
+ brew install openssl
52
+ # disable sccache on macos as it times out for unknown reasons
53
+ # see GH-33721
54
+ # brew install sccache
55
+ # remove cmake so that we can test our cmake downloading abilities
56
+ brew uninstall cmake
57
+ - uses : r-lib/actions/setup-r@v2
58
+ with :
59
+ use-public-rspm : true
60
+ # CRAN builders have the entire bin here added to the path. This sometimes
61
+ # includes things like GNU libtool which name-collide with what we expect
62
+ - name : Add R.framework/Resources/bin to the path
63
+ run : echo "/Library/Frameworks/R.framework/Resources/bin" >> $GITHUB_PATH
64
+ - name : Check whether libtool in R is used
65
+ run : |
66
+ if [ "$(which libtool)" != "/Library/Frameworks/R.framework/Resources/bin/libtool" ]; then
67
+ echo "libtool provided by R isn't found: $(which libtool)"
68
+ exit 1
69
+ fi
70
+ - name : Install dependencies
71
+ uses : r-lib/actions/setup-r-dependencies@v2
72
+ with :
73
+ cache : false # cache does not work on across branches
74
+ working-directory : arrow/r
75
+ extra-packages : |
76
+ any::rcmdcheck
77
+ any::sys
78
+ - name : Install
79
+ env :
80
+ _R_CHECK_CRAN_INCOMING_ : false
81
+ CXX : " clang++ -mmacos-version-min=14.6"
82
+ CFLAGS : " -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes"
83
+ CXXFLAGS : " -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion"
84
+ NOT_CRAN : false
85
+ run : |
86
+ sccache --start-server || echo 'sccache not found'
87
+ cd arrow/r
88
+ R CMD INSTALL . --install-tests
89
+ - name : Run the tests
90
+ run : R -e 'if(tools::testInstalledPackage("arrow") != 0L) stop("There was a test failure.")'
91
+ - name : Dump test logs
92
+ run : cat arrow-tests/testthat.Rout*
93
+ if : failure()
94
+ - name : Save the test output
95
+ uses : actions/upload-artifact@v4
96
+ with :
97
+ name : test-output
98
+ path : arrow-tests/testthat.Rout*
99
+ if : always()
0 commit comments