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

View file

@ -2,8 +2,8 @@
set -eu
JUST_VERSION="1.47.1"
JUST_SHA256SUM="3cb931ae25860f261ee373f32ede3b772ac91f14f588e4071576d3ffcf1a16fd"
JUST_VERSION="1.51.0"
JUST_SHA256SUM="c8f085ca3e885723c341d06243fc291b5abfdc8bbe3b2c076b117de490387b59"
CARGO_LLVM_COV_VERSION="0.6.21"
CARGO_LLVM_COV_SHA256SUM="57f491aedf7cdb261538ceb49cbb1ee9d27df7ca205a5e1a009caaf5cb911afb"
CARGO_AUDIT_VERSION="0.22.1"
@ -15,6 +15,8 @@ TYPOS_VERSION="1.47.2"
TYPOS_SHA256SUM="7aef58932fc123b4cf4b40d86468e89a3297d80169051d7cfd13a235e05fc426"
CARGO_DENY_VERSION="0.19.8"
CARGO_DENY_SHA256SUM="70e769ae3872e34d45132b17040859175e11401dc12dddb0303e0b8c7d088f3f"
CARGO_XWIN_VERSION="0.23.0"
CARGO_XWIN_SHA256SUM="74a216f64f10ea81c909f02d6b1a84cd0fda8de4c87ee52fe63ba76ab2392b75"
TRIPLE="x86_64-unknown-linux-gnu"
TRIPLE_MUSL="x86_64-unknown-linux-musl"
@ -73,3 +75,7 @@ fetch crate-ci/typos "v$TYPOS_VERSION" \
fetch EmbarkStudios/cargo-deny "$CARGO_DENY_VERSION" \
cargo-deny-$CARGO_DENY_VERSION-$TRIPLE_MUSL.tar.gz \
"$CARGO_DENY_SHA256SUM" cargo-deny
fetch rust-cross/cargo-xwin "v$CARGO_XWIN_VERSION" \
cargo-xwin-v$CARGO_XWIN_VERSION.$TRIPLE_MUSL.tar.gz \
"$CARGO_XWIN_SHA256SUM" cargo-xwin

View file

@ -27,7 +27,7 @@ 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