File: mac-os.yml

package info (click to toggle)
ruby-gnome 4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 26,648 kB
  • sloc: ruby: 67,701; ansic: 67,431; xml: 350; sh: 201; cpp: 45; makefile: 42
file content (122 lines) | stat: -rw-r--r-- 3,860 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: macOS
on:
  - push
  - pull_request
jobs:
  test:
    name: Test
    runs-on: macOS-latest
    timeout-minutes: 30
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ruby
      - name: Install dependencies
        run: |
          brew install pkg-config
          bundle install
      - name: Build
        run: |
          bundle exec rake build
      # TODO: Fix stuck
      # - name: Test
      #   run: |
      #     bundle exec rake

  # Licensed to the Apache Software Foundation (ASF) under one
  # or more contributor license agreements.  See the NOTICE file
  # distributed with this work for additional information
  # regarding copyright ownership.  The ASF licenses this file
  # to you under the Apache License, Version 2.0 (the
  # "License"); you may not use this file except in compliance
  # with the License.  You may obtain a copy of the License at
  #
  #   http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing,
  # software distributed under the License is distributed on an
  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  # KIND, either express or implied.  See the License for the
  # specific language governing permissions and limitations
  # under the License.
  apache-arrow:
    runs-on: macOS-latest
    timeout-minutes: 60
    env:
      ARROW_BUILD_STATIC: OFF
      ARROW_BUILD_TESTS: OFF
      ARROW_BUILD_UTILITIES: OFF
      ARROW_DATASET: ON
      ARROW_FLIGHT: ON
      ARROW_FLIGHT_SQL: ON
      ARROW_GANDIVA: ON
      ARROW_GCS: ON
      ARROW_GLIB_GTK_DOC: true
      ARROW_GLIB_WERROR: true
      ARROW_HOME: /usr/local
      ARROW_JEMALLOC: OFF
      ARROW_ORC: OFF
      ARROW_PARQUET: ON
      ARROW_WITH_BROTLI: ON
      ARROW_WITH_LZ4: ON
      ARROW_WITH_SNAPPY: ON
      ARROW_WITH_ZLIB: ON
      ARROW_WITH_ZSTD: ON
      XML_CATALOG_FILES: /usr/local/etc/xml/catalog
    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: |
          brew install pkg-config
          for package in glib2 gobject-introspection gio2; do
            pushd ${package}
            rake gem
            gem install pkg/*.gem
            popd
          done
      - uses: actions/checkout@v4
        with:
          repository: apache/arrow
          path: arrow
          fetch-depth: 0
          submodules: recursive
      - name: Install Homebrew Dependencies
        shell: bash
        run: |
          brew bundle --file=arrow/cpp/Brewfile
          brew bundle --file=arrow/c_glib/Brewfile
      - name: Install Ruby Dependencies
        run: |
          export MAKEFLAGS="-j$(sysctl -n hw.ncpu)"
          bundle install --gemfile arrow/c_glib/Gemfile
          bundle install --gemfile arrow/ruby/Gemfile
          for ruby_package_gemfile in arrow/ruby/*/Gemfile; do \
            bundle install --gemfile ${ruby_package_gemfile}
          done
      - name: Setup ccache
        run: |
          arrow/ci/scripts/ccache_setup.sh
      - name: ccache info
        run: |
          echo "CACHE_DIR=$(ccache --get-config cache_dir)" >> $GITHUB_ENV
      - name: Cache ccache
        uses: actions/cache@v4
        with:
          path: ${{ env.CACHE_DIR }}
          key: arrow-ccache-macos-${{ hashFiles('arrow/cpp/**') }}
          restore-keys: arrow-ccache-macos-
      - name: Build C++
        run: |
          arrow/ci/scripts/cpp_build.sh $(pwd)/arrow $(pwd)/arrow/build
      - name: Build GLib
        run: |
          arrow/ci/scripts/c_glib_build.sh $(pwd)/arrow $(pwd)/arrow/build
      - name: Test GLib
        shell: bash
        run: |
          arrow/ci/scripts/c_glib_test.sh $(pwd)/arrow $(pwd)/arrow/build
      - name: Test Ruby
        shell: bash
        run: |
          arrow/ci/scripts/ruby_test.sh $(pwd)/arrow $(pwd)/arrow/build