-
Notifications
You must be signed in to change notification settings - Fork 18
73 lines (62 loc) · 1.98 KB
/
pkgconfig.yaml
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
on:
push:
pull_request:
name: pkgconfig
permissions: read-all
jobs:
pkgconfig:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (r-${{ matrix.r }}) (${{ matrix.vendored }} libtiledb)
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
r:
- release
# - devel
vendored:
- 'vendored'
- 'system'
include:
- os: ubuntu-latest
use-public-rspm: true
# - os: ubuntu-latest
# r: devel
# http-user-agent: 'release'
exclude:
- os: macos-latest
r: devel
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
_R_CHECK_FORCE_SUGGESTS_: "FALSE"
_R_TILEDB_LIBTILEDB_: ${{ matrix.vendored }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
http-user-agent: ${{ matrix.http-user-agent }}
use-public-rspm: ${{ matrix.use-public-rspm }}
- name: Setup libtiledb
if: ${{ matrix.vendored == 'system' }}
run: |
VERSION=$(grep version tools/tiledbVersion.txt | cut -f 2 -d ':' | tr -d '[:space:]')
SHA=$(grep sha tools/tiledbVersion.txt | cut -f 2 -d ':' | tr -d '[:space:]')
URL="https://github.com/TileDB-Inc/TileDB/releases/download/${VERSION}/tiledb-linux-x86_64-${VERSION}-${SHA}.tar.gz"
mkdir -vp libtiledb
cd libtiledb
wget -O libtiledb.tar.gz ${URL}
tar -xvzf libtiledb.tar.gz
/usr/bin/sudo cp -Rv include/* /usr/local/include/
/usr/bin/sudo cp -Rv lib/* /usr/local/lib/
cd ..
rm -rfv libtiledb
sudo ldconfig
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
- name: Test tiledb::.pkg_config()
run: Rscript tests/pkgconfig-test.R