CI: Fix paths for registry upload, fetch targets
Some checks failed
/ publish (push) Waiting to run
/ verify (push) Has been cancelled

This commit is contained in:
Juno Takano 2026-03-07 19:59:18 -03:00
commit 0aa7f957be
2 changed files with 6 additions and 4 deletions

View file

@ -41,21 +41,21 @@ jobs:
- name: Publish x64 glibc binary to git.jutty.dev registry - name: Publish x64 glibc binary to git.jutty.dev registry
run: | run: |
version=$(./target/x86_64-unknown-linux-gnu/en --version) version=$(./target/x86_64-unknown-linux-gnu/release/en --version)
api_root=https://git.jutty.dev/api api_root=https://git.jutty.dev/api
url=$api_root/packages/jutty/generic/en/$version/en-x64-linux-gnu url=$api_root/packages/jutty/generic/en/$version/en-x64-linux-gnu
curl -fsSL \ curl -fsSL \
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \ --user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/x86_64-unknown-linux-gnu/en $url --upload-file target/x86_64-unknown-linux-gnu/release/en $url
- name: Publish x64 musl binary to git.jutty.dev registry - name: Publish x64 musl binary to git.jutty.dev registry
run: | run: |
version=$(./target/x86_64-unknown-linux-musl/en --version) version=$(./target/x86_64-unknown-linux-musl/release/en --version)
api_root=https://git.jutty.dev/api 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-linux-musl
curl -fsSL \ curl -fsSL \
--user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \ --user jutty:${{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file target/x86_64-unknown-linux-musl/en $url --upload-file target/x86_64-unknown-linux-musl/release/en $url

View file

@ -28,6 +28,8 @@ jobs:
run: | run: |
rustup component add llvm-tools-preview rustup component add llvm-tools-preview
rustup component add --toolchain nightly rustfmt clippy rustup component add --toolchain nightly rustfmt clippy
rustup target add x86_64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-musl
- name: Setup additional tooling - name: Setup additional tooling
run: .forgejo/workflows/setup-tools.sh run: .forgejo/workflows/setup-tools.sh