Skip to content

Commit

Permalink
feat: update release workflow and target platforms for compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Nov 26, 2024
1 parent d3eb69f commit 098d232
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
with:
context: containers
push: true
platforms: linux/amd64,linux/arm64
# cross-compiling arm64 is currently not working
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: ghcr.io/rustic-rs/rustic_server:latest,ghcr.io/rustic-rs/rustic_server:${{ github.ref_name }}
build-args: RUSTIC_SERVER_VERSION=${{ github.ref_name }}
21 changes: 21 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[target.x86_64-pc-windows-gnu]
# additional commands to run prior to building the package
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install nasm:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH",
]

[target.x86_64-pc-windows-gnu.env]
passthrough = [
"AWS_LC_SYS_PREBUILT_NASM=1",
]

[target.x86_64-unknown-netbsd]
pre-build = [
"cargo install --force --locked bindgen-cli",
]

[target.armv7-unknown-linux-gnueabihf]
pre-build = [
"cargo install --force --locked bindgen-cli",
]
9 changes: 8 additions & 1 deletion dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell", "msi"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "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",
# "aarch64-unknown-linux-musl",
"x86_64-apple-darwin",
# "x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
]
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Whether to install an updater program
Expand Down

0 comments on commit 098d232

Please sign in to comment.