CI: Fix paths for registry upload, fetch targets
This commit is contained in:
parent
1748dd2fb6
commit
0aa7f957be
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue