Skip to content

Commit

Permalink
Merge pull request #366 from thomastaylor312/fix/deps_and_libc
Browse files Browse the repository at this point in the history
fix(*): Updates deps to make sure we avoid native tls
  • Loading branch information
thomastaylor312 committed Mar 14, 2023
2 parents f8d20c5 + 690980d commit 63e598c
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 111 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ jobs:
strategy:
matrix:
config:
# NOTE: We are building on an older version of ubuntu because of libc compatibility
# issues. Namely, if we build on a new version of libc, it isn't backwards compatible with
# old versions. But if we build on the old version, it is compatible with the newer
# versions running in ubuntu 22 and its ilk
- {
os: "ubuntu-latest",
os: "ubuntu-20.04",
arch: "amd64",
extension: "",
env: {},
targetPath: "target/release/",
}
- {
os: "ubuntu-latest",
os: "ubuntu-20.04",
arch: "aarch64",
extension: "",
env: { OPENSSL_DIR: "/usr/local/openssl-aarch64" },
Expand Down Expand Up @@ -113,21 +117,21 @@ jobs:
if: matrix.config.arch != 'aarch64'
with:
command: build
args: "--all-features --release"
args: "--release --no-default-features --features rustls-tls,cli,server,client,caching"

- name: build release
uses: actions-rs/cargo@v1
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'macos-latest'
with:
command: build
args: "--all-features --release --target aarch64-apple-darwin"
args: "--release --no-default-features --features rustls-tls,cli,server,client,caching --target aarch64-apple-darwin"

- name: build release
uses: actions-rs/cargo@v1
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'ubuntu-latest'
with:
command: build
args: "--all-features --release --target aarch64-unknown-linux-gnu"
args: "--release --no-default-features --features rustls-tls,cli,server,client,caching --target aarch64-unknown-linux-gnu"

- name: package release assets
shell: bash
Expand Down Expand Up @@ -168,7 +172,7 @@ jobs:
source_dir: bindle
container_name: releases
connection_string: ${{ secrets.AzureStorageConnectionString }}
overwrite: 'true'
overwrite: "true"
crate:
name: Publish crate
runs-on: ubuntu-latest
Expand All @@ -193,25 +197,25 @@ jobs:
run: cargo publish
shell: bash
docker-image:
name: Build and push docker images
name: Build and push docker images
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: lowercase repository owner
run: |
echo "OWNER=${GITHUB_REPOSITORY_OWNER,,}" >>$GITHUB_ENV
Expand Down
Loading

0 comments on commit 63e598c

Please sign in to comment.