Skip to content

Commit

Permalink
ci: release for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Oct 5, 2024
1 parent 25a6d84 commit 73cb86b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release
on:
workflow_dispatch:
inputs:
component:
description: The software component to release
required: true
type: choice
options:
- identity-server

jobs:
build:
name: Build the code for each platform
runs-on: windows-2022
steps:
- uses: actions/[email protected]
- uses: mlugg/[email protected]
with:
version: 0.13.0
- name: Cache cargo dependencies
uses: Swatinem/[email protected]
# - name: Install mingw
# run: sudo apt-get install -y mingw-w64

- name: Install cargo-zigbuild
run: cargo install --locked [email protected]

- name: Perform
run: cargo zigbuild --target x86_64-unknown-linux-musl aarch64-unknown-linux-musl aarch64-apple-darwin x86_64-pc-windows-gnu

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,10 @@ opt-level = 1
[profile.dev.package."*"]
# Seems to cause crashes on mac on opt-level 3
opt-level = 2

# What we use when producing artifacts to distribute
[profile.artifact]
inherits = "release"
lto = true
strip = true
debug = false

0 comments on commit 73cb86b

Please sign in to comment.