Skip to content

Commit

Permalink
ci: Linux Arm64 Releases (foundry-rs#730)
Browse files Browse the repository at this point in the history
* chore(utils): default-features = false for reqwest

* ci: build arm64 linux nightlies

* ci: add arm setup

* ci: use arm linker for linux arm builds

* ci: only build man pages on x86 linux

Co-authored-by: Oliver Nordbjerg <[email protected]>
  • Loading branch information
gakonst and onbjerg authored Feb 12, 2022
1 parent 057cff4 commit 9efc700
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@ jobs:
# The OS is used for the runner
# The platform is a generic platform name
# The target is used by Cargo
# The arch is either 386 or amd64
# The arch is either 386, arm64 or amd64
- os: ubuntu-latest
platform: linux
target: x86_64-unknown-linux-gnu
arch: amd64
- os: ubuntu-latest
platform: linux
target: aarch64-unknown-linux-gnu
arch: arm64
- os: macos-latest
platform: darwin
target: x86_64-apple-darwin
Expand Down Expand Up @@ -112,6 +116,13 @@ jobs:
echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> $GITHUB_ENV
echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV
- name: Linux ARM setup
if: ${{ matrix.job.target == 'aarch64-unknown-linux-gnu' }}
run: |
sudo apt-get update -y
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Build binaries
env:
RUSTFLAGS: -C link-args=-s
Expand Down Expand Up @@ -146,7 +157,7 @@ jobs:

- name: Build man page
id: man
if: ${{ matrix.job.platform == 'linux' }}
if: ${{ matrix.job.target == 'x86_64-unknown-linux-gnu' }}
env:
PLATFORM_NAME: ${{ matrix.job.platform }}
TARGET: ${{ matrix.job.target }}
Expand Down
2 changes: 1 addition & 1 deletion utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tracing-subscriber = { version = "0.3", default-features = false, features = ["e

eyre = { version = "0.6.5", default-features = false }
hex = "0.4.3"
reqwest = { version = "0.11.8", features = ["json"] }
reqwest = { version = "0.11.8", default-features = false, features = ["json", "rustls"] }
rustc-hex = { version = "2.1.0", default-features = false }
serde = "1.0.132"
serde_json = { version = "1.0.67", default-features = false }
Expand Down

0 comments on commit 9efc700

Please sign in to comment.