Setup Windows builds
Some checks failed
/ verify (push) Has been cancelled

This commit is contained in:
Juno Takano 2026-06-20 01:11:45 -03:00
commit 3494ba71e6
6 changed files with 90 additions and 33 deletions

View file

@ -27,10 +27,11 @@ jobs:
- name: Setup Rust toolchain
run: |
rustup component add llvm-tools-preview
rustup component add llvm-tools
rustup component add --toolchain nightly rustfmt clippy
rustup target add x86_64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-musl
rustup target add x86_64-pc-windows-msvc
- name: Setup additional tooling
run: .forgejo/workflows/setup-tools.sh
@ -43,16 +44,30 @@ jobs:
- name: Run all assessments
run: just ci verify
- name: Build x64 glibc release binary
run: just release-build x86_64-unknown-linux-gnu
- name: Build x64 Linux glibc release binary
run: just release-build-gnu
- name: Build x64 musl release binary
run: just release-build x86_64-unknown-linux-musl
- name: Build x64 Linux musl release binary
run: just release-build-musl
- name: Build x64 Windows MSVC release binary
run: just release-build-msvc
- name: Calculate SHA-256 hashes
run: just shasum
- name: Publish x64 glibc binary to git.jutty.dev registry
- name: Publish x64 Linux musl binary to git.jutty.dev registry
if: ${{ inputs.upload }}
run: |
version=$(./target/x86_64-unknown-linux-musl/release/en --version)
api_root=https://git.jutty.dev/api
url=$api_root/packages/jutty/generic/en/$version/en-x64-linux-musl
curl -fsSL \
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/x86_64-unknown-linux-musl/release/en $url
- name: Publish x64 Linux glibc binary to git.jutty.dev registry
if: ${{ inputs.upload }}
run: |
version=$(./target/x86_64-unknown-linux-gnu/release/en --version)
@ -63,13 +78,13 @@ jobs:
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/x86_64-unknown-linux-gnu/release/en $url
- name: Publish x64 musl binary to git.jutty.dev registry
- name: Publish x64 Windows MSVC binary to git.jutty.dev registry
if: ${{ inputs.upload }}
run: |
version=$(./target/x86_64-unknown-linux-musl/release/en --version)
api_root=https://git.jutty.dev/api
url=$api_root/packages/jutty/generic/en/$version/en-x64-linux-musl
url=$api_root/packages/jutty/generic/en/$version/en-x64-windows-msvc
curl -fsSL \
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/x86_64-unknown-linux-musl/release/en $url
--upload-file target/x86_64-pc-windows-msvc/release/en.exe $url