build against older glibc - fixes #33

This commit is contained in:
Eugene Pankov 2022-05-18 01:13:25 -07:00
parent 8804ee11b4
commit 52fecf06b3
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
3 changed files with 17 additions and 3 deletions

View file

@ -5,12 +5,17 @@ on: [push, pull_request]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rlespinasse/github-slug-action@4.2.3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
override: true
- name: Cache
uses: actions/cache@v2
with:
@ -24,7 +29,6 @@ jobs:
run: |
cargo install just
- name: Install admin UI deps
run: |
just yarn
@ -38,8 +42,9 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
toolchain: nightly
use-cross: true
args: --release --target x86_64-unknown-linux-gnu
args: --release --target x86_64-unknown-linux-gnu -Ztarget-applies-to-host
- name: Rename
run: |

2
Cross.toml Normal file
View file

@ -0,0 +1,2 @@
[target.x86_64-unknown-linux-gnu]
image = "eugenepankov/warpgate-build-env"

View file

@ -0,0 +1,7 @@
FROM centos/devtoolset-7-toolchain-centos7
USER root
RUN curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -
RUN yum install -y nodejs java pkgconfig openssl-devel perl-IPC-Cmd && yum clean all
RUN npm i -g yarn
USER 1001
ENV PATH=/opt/app-root/src/.cargo/bin:/opt/rh/devtoolset-7/root/usr/bin:/opt/app-root/src/bin:/opt/app-root/bin:/opt/rh/devtoolset-7/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin