Add dev containers, musl build
Some checks are pending
/ verify (push) Waiting to run
/ publish (push) Waiting to run

This commit is contained in:
Juno Takano 2026-03-07 17:28:47 -03:00
commit d9341e7686
6 changed files with 86 additions and 36 deletions

View file

@ -22,21 +22,37 @@ jobs:
run: |
rustup component add llvm-tools-preview
rustup component add --toolchain nightly rustfmt clippy
rustup target add x86_64-unknown-linux-musl
- name: Setup additional tooling
run: .forgejo/workflows/setup-tools.sh
- name: Build release binary
run: just full-build
- name: Calculate SHA-256 hash
- name: Build x64 glibc release binary
run: just full-build x86_64-unknown-linux-gnu
- name: Build x64 musl release binary
run: just full-build x86_64-unknown-linux-musl
- name: Calculate SHA-256 hashes
run: just shasum
- name: Publish to git.jutty.dev package registry
- name: Publish x64 glibc binary to git.jutty.dev registry
run: |
version=$(./target/release/en --version)
version=$(./target/x86_64-unknown-linux-gnu/en --version)
api_root=https://git.jutty.dev/api
url=$api_root/packages/jutty/generic/en/$version/en-x86_64-linux-gnu
url=$api_root/packages/jutty/generic/en/$version/en-x64-linux-gnu
curl -fsSL \
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/release/en $url
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/x86_64-unknown-linux-gnu/en $url
- name: Publish x64 musl binary to git.jutty.dev registry
run: |
version=$(./target/x86_64-unknown-linux-musl/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/en $url