|
| 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 | +name: r-extended |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + branches: |
| 23 | + - main |
| 24 | + pull_request: |
| 25 | + branches: |
| 26 | + - main |
| 27 | + paths: |
| 28 | + - 'r/**' |
| 29 | +jobs: |
| 30 | + |
| 31 | + test: |
| 32 | + runs-on: ${{ matrix.config.os }} |
| 33 | + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 34 | + defaults: |
| 35 | + run: |
| 36 | + shell: bash |
| 37 | + |
| 38 | + strategy: |
| 39 | + fail-fast: false |
| 40 | + matrix: |
| 41 | + config: |
| 42 | + - {os: ubuntu-latest, r: 'release'} |
| 43 | + |
| 44 | + env: |
| 45 | + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 46 | + R_KEEP_PKG_SOURCE: yes |
| 47 | + |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v4 |
| 50 | + - uses: r-lib/actions/setup-pandoc@v2 |
| 51 | + - uses: r-lib/actions/setup-r@v2 |
| 52 | + with: |
| 53 | + r-version: ${{ matrix.config.r }} |
| 54 | + http-user-agent: ${{ matrix.config.http-user-agent }} |
| 55 | + use-public-rspm: true |
| 56 | + |
| 57 | + - name: Use stable Rust |
| 58 | + id: rust |
| 59 | + run: | |
| 60 | + rustup toolchain install stable --no-self-update |
| 61 | + rustup default stable |
| 62 | +
|
| 63 | + - name: Install dependencies |
| 64 | + if: matrix.config.os == 'ubuntu-latest' |
| 65 | + run: sudo apt-get update && sudo apt-get install -y libgeos-dev |
| 66 | + |
| 67 | + - uses: r-lib/actions/setup-r-dependencies@v2 |
| 68 | + with: |
| 69 | + extra-packages: any::rcmdcheck |
| 70 | + needs: check |
| 71 | + working-directory: r/sedonadb |
| 72 | + |
| 73 | + - uses: r-lib/actions/check-r-package@v2 |
| 74 | + with: |
| 75 | + working-directory: r/sedonadb |
| 76 | + error-on: '"error"' |
0 commit comments