mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-09-20 06:46:17 +08:00
build against older glibc - fixes #33
This commit is contained in:
parent
8804ee11b4
commit
52fecf06b3
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -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
2
Cross.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[target.x86_64-unknown-linux-gnu]
|
||||
image = "eugenepankov/warpgate-build-env"
|
7
docker/Dockerfile.builder
Normal file
7
docker/Dockerfile.builder
Normal 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
|
Loading…
Reference in a new issue