Skip to content

Commit

Permalink
chore(release/0.8): cherry-pick CI features/fixes (#359)
Browse files Browse the repository at this point in the history
* add build support for aarch64 linux binary (#328)

* Bump azure-blob-storage-upload to v2.0.1

Signed-off-by: Matthew Fisher <[email protected]>

* fix(deny.toml): add Unicode-DFS-2016 to allowed licenses

Signed-off-by: Vaughn Dice <[email protected]>

Signed-off-by: Matthew Fisher <[email protected]>
Signed-off-by: Vaughn Dice <[email protected]>
Co-authored-by: VishnuJin <[email protected]>
Co-authored-by: Matthew Fisher <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2022
1 parent 46616eb commit d80ba6f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
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/[email protected].0
uses: bacongobbler/[email protected].1
with:
source_dir: bindle
container_name: releases
Expand Down
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ unlicensed = "deny"
allow = [
"LicenseRef-ring",
"MPL-2.0",
"Unicode-DFS-2016"
]
# List of explictly disallowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
Expand Down

0 comments on commit d80ba6f

Please sign in to comment.