Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release/0.8): cherry-pick CI features/fixes #359

Merged
merged 3 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
43 changes: 40 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
env: {},
targetPath: "target/release/",
}
- {
os: "ubuntu-latest",
arch: "aarch64",
extension: "",
env: { OPENSSL_DIR: "/usr/local/openssl-aarch64" },
targetPath: "target/aarch64-unknown-linux-gnu/release/",
}
- {
os: "macos-latest",
arch: "amd64",
Expand Down Expand Up @@ -68,15 +75,38 @@ jobs:
default: true
components: clippy, rustfmt

- name: setup for cross-compile builds
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'ubuntu-latest'
run: |
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
cd /tmp
git clone https://github.com/openssl/openssl
cd openssl
git checkout OpenSSL_1_1_1l
sudo mkdir -p $OPENSSL_DIR
./Configure linux-aarch64 --prefix=$OPENSSL_DIR --openssldir=$OPENSSL_DIR shared
make CC=aarch64-linux-gnu-gcc
sudo make install
rustup target add aarch64-unknown-linux-gnu

- name: Install latest Rust stable toolchain
uses: actions-rs/toolchain@v1
if: matrix.config.arch == 'aarch64'
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'macos-latest'
with:
toolchain: stable
default: true
components: clippy, rustfmt
target: aarch64-apple-darwin

- name: Install latest Rust stable toolchain
uses: actions-rs/toolchain@v1
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'ubuntu-latest'
with:
toolchain: stable
default: true
components: clippy, rustfmt
target: aarch64-unknown-linux-gnu

- name: build release
uses: actions-rs/cargo@v1
if: matrix.config.arch != 'aarch64'
Expand All @@ -86,11 +116,18 @@ jobs:

- name: build release
uses: actions-rs/cargo@v1
if: matrix.config.arch == 'aarch64'
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'macos-latest'
with:
command: build
args: "--all-features --release --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"

- name: package release assets
shell: bash
run: |
Expand Down Expand Up @@ -125,7 +162,7 @@ jobs:
cd bindle
sha256sum * > checksums-${{ env.RELEASE_VERSION }}.txt
- name: upload to azure
uses: bacongobbler/azure-blob-storage-upload@v2.0.0
uses: bacongobbler/azure-blob-storage-upload@v2.0.1
with:
source_dir: bindle
container_name: releases
Expand Down