Add aarch64 static linux release. Remove linux glibc release and add aarch64 support to linux install script.

Also name workflows more consistently.
This commit is contained in:
Sebastian Jeltsch
2025-12-05 12:22:55 +01:00
parent 8a1ec8b01f
commit 328f2b656f
2 changed files with 77 additions and 38 deletions
+74 -38
View File
@@ -24,44 +24,44 @@ jobs:
generate_release_notes: true
body_path: ./CHANGELOG-release.md
release-linux-glibc:
needs: changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install Dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev zip
- uses: pnpm/action-setup@v4
with:
version: 9
- name: PNPM install
run: |
pnpm install
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.90.0
target: x86_64-unknown-linux-gnu
default: true
- name: Rust Build
# NOTE: cargo links different binaries whether in the crate or workspace root :/.
run: |
cd crates/cli && \
CARGO_PROFILE_RELEASE_LTO=fat CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 PNPM_OFFLINE=TRUE \
cargo build --target x86_64-unknown-linux-gnu --release --bin trail && \
cd ../.. && \
zip -r -j trailbase_${{ github.ref_name }}_x86_64_linux_glibc.zip target/x86_64-unknown-linux-gnu/release/trail CHANGELOG.md LICENSE
# release-x86_64-linux-glibc:
# needs: changelog
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: 'true'
# - name: Install Dependencies
# run: |
# sudo apt-get update && \
# sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev zip
# - uses: pnpm/action-setup@v4
# with:
# version: 9
# - name: PNPM install
# run: |
# pnpm install
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: 1.90.0
# target: x86_64-unknown-linux-gnu
# default: true
# - name: Rust Build
# # NOTE: cargo links different binaries whether in the crate or workspace root :/.
# run: |
# cd crates/cli && \
# CARGO_PROFILE_RELEASE_LTO=fat CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 PNPM_OFFLINE=TRUE \
# cargo build --target x86_64-unknown-linux-gnu --release --bin trail && \
# cd ../.. && \
# zip -r -j trailbase_${{ github.ref_name }}_x86_64_linux_glibc.zip target/x86_64-unknown-linux-gnu/release/trail CHANGELOG.md LICENSE
- name: Release binaries
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: trailbase_${{ github.ref_name }}_x86_64_linux_glibc.zip
# - name: Release binaries
# uses: softprops/action-gh-release@v2
# with:
# fail_on_unmatched_files: true
# files: trailbase_${{ github.ref_name }}_x86_64_linux_glibc.zip
release-linux-static:
release-x86_64-linux-static:
needs: changelog
runs-on: ubuntu-latest
steps:
@@ -97,7 +97,43 @@ jobs:
fail_on_unmatched_files: true
files: trailbase_${{ github.ref_name }}_x86_64_linux.zip
release-linux-auth-ui:
release-aarch64-linux-static:
needs: changelog
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install Dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev zip musl-tools
- uses: pnpm/action-setup@v4
with:
version: 9
- name: PNPM install
run: |
pnpm install
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.90.0
target: aarch64-unknown-linux-musl
default: true
- name: Rust Build
run: |
cd crates/cli && \
CARGO_PROFILE_RELEASE_LTO=fat CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 PNPM_OFFLINE=TRUE \
cargo build --target aarch64-unknown-linux-musl --features=vendor-ssl --release --bin trail && \
cd ../.. && \
zip -r -j trailbase_${{ github.ref_name }}_arm64_linux.zip target/aarch64-unknown-linux-musl/release/trail CHANGELOG.md LICENSE
- name: Release binaries
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: trailbase_${{ github.ref_name }}_arm64_linux.zip
release-wasm-auth-ui:
needs: changelog
runs-on: ubuntu-latest
steps:
@@ -200,7 +236,7 @@ jobs:
fail_on_unmatched_files: true
files: trailbase_${{ github.ref_name }}_x86_64_apple_darwin.zip
release-windows:
release-x86_64-windows:
needs: changelog
runs-on: windows-latest
steps:
+3
View File
@@ -294,6 +294,7 @@ verbose "Host architecture: $arch"
amd64=("amd64" "x86_64" "x86-64" "x64")
amd32=("386" "i386" "i686" "x86")
arm=("arm" "armv7" "armv6" "armv8" "armv8l" "armv7l" "armv6l" "armv8l" "armv7l" "armv6l")
aarch64=("aarch64" "arm64")
currentArchAliases=()
# Set the right aliases for current host system
@@ -301,6 +302,8 @@ if [ "$arch" == "x86_64" ]; then
currentArchAliases=("${amd64[@]}")
elif [ "$arch" == "i386" ] || [ "$arch" == "i686" ]; then
currentArchAliases=("${amd32[@]}")
elif [[ "$arch" = "aarch64" ]]; then
currentArchAliases=("${aarch64[@]}")
# Else if starts with "arm"
elif [[ "$arch" =~ ^arm ]]; then
currentArchAliases=("${arm[@]}")