-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
188 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Test build on various Linux distros | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ubuntu-2204: | ||
description: "Ubuntu 22.04" | ||
required: true | ||
type: choice | ||
options: | ||
- 'yes' | ||
- 'no' | ||
default: 'yes' | ||
debian-12: | ||
description: "Debian 12" | ||
required: true | ||
type: choice | ||
options: | ||
- 'yes' | ||
- 'no' | ||
default: 'yes' | ||
fedora-38: | ||
description: "Fedora 38" | ||
required: true | ||
type: choice | ||
options: | ||
- 'yes' | ||
- 'no' | ||
default: 'yes' | ||
|
||
jobs: | ||
ubuntu-22.04: | ||
if: ${{ github.event.inputs.ubuntu-2204 == '' || github.event.inputs.ubuntu-2204 == 'yes' }} | ||
runs-on: ubuntu-latest | ||
name: Ubuntu 22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build in Docker | ||
run: | | ||
docker build -f tools/build/linux/Dockerfile-ubuntu-22.04 -t bqs:ubuntu2204 . | ||
docker run bqs:ubuntu2204 R -q -e 'library(bigrquerystorage)' | ||
debian-12: | ||
if: ${{ github.event.inputs.debian-12 == '' || github.event.inputs.debian-12 == 'yes' }} | ||
runs-on: ubuntu-latest | ||
name: Debian 12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build in Docker | ||
run: | | ||
docker build -f tools/build/linux/Dockerfile-debian-12 -t bqs:debian12 . | ||
docker run bqs:debian12 R -q -e 'library(bigrquerystorage)' | ||
fedora-38: | ||
if: ${{ github.event.inputs.fedora-38 == '' || github.event.inputs.fedora-38 == 'yes' }} | ||
runs-on: ubuntu-latest | ||
name: Fedora 38 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build in Docker | ||
run: | | ||
docker build -f tools/build/linux/Dockerfile-fedora-38 -t bqs:fedora-38 . | ||
docker run bqs:fedora-38 R -q -e 'library(bigrquerystorage)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ src/google/ | |
*.so | ||
*.dll | ||
.httr-oauth | ||
/src/Makevars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <cstdint> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- Dockerfile -*- | ||
|
||
FROM debian:12 | ||
|
||
# ------------------------------------------------------------------------- | ||
# This is going to use P3M on x86_64 | ||
COPY tools/build/linux/rig.gpg /etc/apt/trusted.gpg.d/rig.gpg | ||
RUN echo "deb http://rig.r-pkg.org/deb rig main" > \ | ||
/etc/apt/sources.list.d/rig.list && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && \ | ||
apt-get install -y r-rig && \ | ||
rig add release | ||
|
||
# ------------------------------------------------------------------------- | ||
# FIXME: We don't need this once grpc is in the system requirements db | ||
RUN apt-get install -y libprotobuf-dev protobuf-compiler-grpc \ | ||
libgrpc++-dev libc-ares-dev \ | ||
libre2-dev pkg-config | ||
|
||
# ------------------------------------------------------------------------- | ||
# Only copy DESCRIPTION, so Docker can cache the dependency install | ||
RUN mkdir /root/bigrquerystorage | ||
COPY DESCRIPTION /root/bigrquerystorage/ | ||
WORKDIR /root/bigrquerystorage | ||
# No upgrade, to always install binary packages, in case P3M is behind | ||
RUN R -q -e 'pak::local_install_deps(upgrade = FALSE)' | ||
|
||
# ------------------------------------------------------------------------- | ||
# Call R CMD build first, so we get rid of Makevars, .o, .so, etc. | ||
# Change file ownership, otherwise git complains | ||
# Clean up thoroughly, in case the cleanup script is not perfect. | ||
RUN apt-get install -y git | ||
COPY . /root/bigrquerystorage | ||
RUN chown root:root -R . | ||
RUN git clean -fdx . | ||
|
||
# ------------------------------------------------------------------------- | ||
WORKDIR /root | ||
RUN R CMD build bigrquerystorage | ||
RUN R CMD INSTALL bigrquerystorage_*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- Dockerfile -*- | ||
|
||
FROM fedora:38 | ||
|
||
# ------------------------------------------------------------------------- | ||
RUN yum install -y \ | ||
https://github.com/r-lib/rig/releases/download/latest/r-rig-latest-1.$(arch).rpm && \ | ||
rig add devel | ||
|
||
# ------------------------------------------------------------------------- | ||
# FIXME: We don't need this once grpc is in the system requirements db | ||
RUN dnf install -y protobuf-devel protobuf-compiler \ | ||
grpc-devel c-ares-devel \ | ||
re2-devel pkgconf | ||
|
||
# ------------------------------------------------------------------------- | ||
# Only copy DESCRIPTION, so Docker can cache the dependency install | ||
RUN mkdir /root/bigrquerystorage | ||
COPY DESCRIPTION /root/bigrquerystorage/ | ||
WORKDIR /root/bigrquerystorage | ||
# No upgrade, to always install binary packages, in case P3M is behind | ||
RUN R -q -e 'pak::local_install_deps(upgrade = FALSE)' | ||
|
||
# ------------------------------------------------------------------------- | ||
# Call R CMD build first, so we get rid of Makevars, .o, .so, etc. | ||
# Change file ownership, otherwise git complains | ||
# Clean up thoroughly, in case the cleanup script is not perfect. | ||
RUN dnf install -y git | ||
COPY . /root/bigrquerystorage | ||
RUN chown root:root -R . | ||
RUN git clean -fdx . | ||
|
||
# ------------------------------------------------------------------------- | ||
WORKDIR /root | ||
RUN R CMD build bigrquerystorage | ||
RUN R CMD INSTALL bigrquerystorage_*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- Dockerfile -*- | ||
|
||
FROM ubuntu:22.04 | ||
|
||
# ------------------------------------------------------------------------- | ||
# This is going to use P3M on x86_64 | ||
COPY tools/build/linux/rig.gpg /etc/apt/trusted.gpg.d/rig.gpg | ||
RUN echo "deb http://rig.r-pkg.org/deb rig main" > \ | ||
/etc/apt/sources.list.d/rig.list && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && \ | ||
apt-get install -y r-rig && \ | ||
rig add release | ||
|
||
# ------------------------------------------------------------------------- | ||
# FIXME: We don't need this once grpc is in the system requirements db | ||
RUN apt-get install -y libprotobuf-dev protobuf-compiler-grpc \ | ||
libgrpc++-dev libc-ares-dev libre2-dev \ | ||
pkg-config | ||
|
||
# ------------------------------------------------------------------------- | ||
# Only copy DESCRIPTION first, so Docker can cache the dependency install | ||
RUN mkdir /root/bigrquerystorage | ||
COPY DESCRIPTION /root/bigrquerystorage/ | ||
WORKDIR /root/bigrquerystorage | ||
# No upgrade, to always install binary packages, in case P3M is behind | ||
RUN R -q -e 'pak::local_install_deps(upgrade = FALSE)' | ||
|
||
# ------------------------------------------------------------------------- | ||
# Call R CMD build first, so we get rid of Makevars, .o, .so, etc. | ||
# Change file ownership, otherwise git complains | ||
# Clean up thoroughly, in case the cleanup script is not perfect. | ||
RUN apt-get install -y git | ||
COPY . /root/bigrquerystorage | ||
RUN chown root:root -R . | ||
RUN git clean -fdx . | ||
|
||
# ------------------------------------------------------------------------- | ||
WORKDIR /root | ||
RUN R CMD build bigrquerystorage | ||
RUN R CMD INSTALL bigrquerystorage_*.tar.gz |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters