Skip to content

Commit

Permalink
Manually release ARM build
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Dec 27, 2024
1 parent 57c140f commit 9965ad8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
SYSTEM_DEPS_DAV1D_BUILD_INTERNAL = "auto" # Find local dav1d or build it from scratch
SYSTEM_DEPS_DAV1D_LINK = "static" # Force it to be linked statically however

CC_aarch64_unknown_linux_musl = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"

#[build]
#target = "x86_64-unknown-linux-gnu"

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,26 @@ jobs:
files: MANUAL.md
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


build-arm-release:
needs:
- announce
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install binstall
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash

- name: Build
run: cargo binstall cross

- name: Generate Manual
run: cross build --profile dist --target aarch64-unknown-linux-gnu

- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
files: target/aarch64-unknown-linux-gnu/dist/wt_ext_cli
5 changes: 1 addition & 4 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ members = ["cargo:."]

# Config for 'cargo dist'
[dist]

[dependencies.apt]
gcc-aarch64-linux-gnu = { version = '*', targets = ["aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl"] }
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.23.0"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
# Which actions to run on pull requests
pr-run-mode = "skip"
# Path that installers should place binaries in
Expand Down

0 comments on commit 9965ad8

Please sign in to comment.