Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

update release.yml

Aleksei Savinbf262790c8c5
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8465d4c5f..c174697ba 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -68,27 +68,6 @@ jobs:
echo "No previous tags; ${VERSION} is the first release"
fi
- - name: "Release: Reset existing rustup toolchains on self-hosted runner"
- run: |
- if command -v rustup >/dev/null; then
- rustup toolchain uninstall stable 2>/dev/null || true
- rustup toolchain uninstall nightly 2>/dev/null || true
- fi
-
- - name: "Release: Install tools"
- run: |
- cargo tools setup
- cargo tools install rust
- cargo tools install python
- cargo tools install swift
- cargo tools install typescript
-
- - name: "Release: Sync"
- run: cargo tools sync
-
- - name: "Release: Build artifacts"
- run: cargo tools release "${VERSION}"
-
- name: "Binaries: Import developer identity certificate"
run: |
set -euo pipefail
@@ -98,7 +77,6 @@ jobs:
echo "${{ secrets.APPLE_DEVELOPER_ID_P12 }}" | base64 -D > "$CERT_P12"
security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
- security default-keychain -s "$KEYCHAIN_PATH"
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security import "$CERT_P12" \
-k "$KEYCHAIN_PATH" \
@@ -112,6 +90,27 @@ jobs:
echo "SIGNING_KEYCHAIN_PATH=$KEYCHAIN_PATH" >> "$GITHUB_ENV"
+ - name: "Release: Reset existing rustup toolchains on self-hosted runner"
+ run: |
+ if command -v rustup >/dev/null; then
+ rustup toolchain uninstall stable 2>/dev/null || true
+ rustup toolchain uninstall nightly 2>/dev/null || true
+ fi
+
+ - name: "Release: Install tools"
+ run: |
+ cargo tools setup
+ cargo tools install rust
+ cargo tools install python
+ cargo tools install swift
+ cargo tools install typescript
+
+ - name: "Release: Sync"
+ run: cargo tools sync
+
+ - name: "Release: Build artifacts"
+ run: cargo tools release "${VERSION}"
+
- name: "Binaries: Codesign"
shell: bash
env:
@@ -134,6 +133,7 @@ jobs:
while IFS= read -r -d '' binary_path; do
chmod +x "$binary_path"
codesign --force --options runtime --timestamp \
+ --keychain "$SIGNING_KEYCHAIN_PATH" \
--sign "$IDENTITY" \
"$binary_path"
codesign --verify --strict --verbose=2 "$binary_path"