use an older version of the mac os sdk in release (#3484)

This commit is contained in:
Jeffrey Morgan 2024-04-04 09:48:54 -07:00 committed by GitHub
parent a2e60ebcaf
commit b0e7d35db8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,7 @@ on:
jobs: jobs:
# Full build of the Mac assets # Full build of the Mac assets
build-darwin: build-darwin:
runs-on: macos-latest runs-on: macos-12
environment: release environment: release
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -38,6 +38,8 @@ jobs:
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }} APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}
APPLE_ID: ${{ vars.APPLE_ID }} APPLE_ID: ${{ vars.APPLE_ID }}
SDKROOT: /Applications/Xcode_13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
DEVELOPER_DIR: /Applications/Xcode_13.4.1.app/Contents/Developer
run: | run: |
./scripts/build_darwin.sh ./scripts/build_darwin.sh
@ -48,7 +50,6 @@ jobs:
dist/*arwin* dist/*arwin*
!dist/*-cov !dist/*-cov
# Windows builds take a long time to both install the dependencies and build, so parallelize # Windows builds take a long time to both install the dependencies and build, so parallelize
# CPU generation step # CPU generation step
generate-windows-cpu: generate-windows-cpu:
@ -140,7 +141,7 @@ jobs:
with: with:
go-version: '1.22' go-version: '1.22'
cache: true cache: true
- name: "Install ROCm" - name: 'Install ROCm'
run: | run: |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
write-host "downloading AMD HIP Installer" write-host "downloading AMD HIP Installer"
@ -148,7 +149,7 @@ jobs:
write-host "Installing AMD HIP" write-host "Installing AMD HIP"
Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -Wait Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -Wait
write-host "Completed AMD HIP" write-host "Completed AMD HIP"
- name: "Verify ROCm" - name: 'Verify ROCm'
run: | run: |
& 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version & 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version
- run: go get ./... - run: go get ./...
@ -162,7 +163,7 @@ jobs:
$env:HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path) $env:HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)
go generate -x ./... go generate -x ./...
name: go generate name: go generate
- name: "gather rocm dependencies" - name: 'gather rocm dependencies'
run: | run: |
$HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path) $HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)
md "dist\deps\bin\rocblas\library" md "dist\deps\bin\rocblas\library"
@ -215,7 +216,7 @@ jobs:
with: with:
go-version: '1.22' go-version: '1.22'
cache: true cache: true
- name: "Install CUDA" - name: 'Install CUDA'
run: | run: |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
write-host "downloading CUDA Installer" write-host "downloading CUDA Installer"
@ -229,7 +230,7 @@ jobs:
echo "CUDA_PATH=$cudaPath" >> $env:GITHUB_ENV echo "CUDA_PATH=$cudaPath" >> $env:GITHUB_ENV
echo "CUDA_PATH_V${cudaVer}=$cudaPath" >> $env:GITHUB_ENV echo "CUDA_PATH_V${cudaVer}=$cudaPath" >> $env:GITHUB_ENV
echo "CUDA_PATH_VX_Y=CUDA_PATH_V${cudaVer}" >> $env:GITHUB_ENV echo "CUDA_PATH_VX_Y=CUDA_PATH_V${cudaVer}" >> $env:GITHUB_ENV
- name: "Verify CUDA" - name: 'Verify CUDA'
run: nvcc -V run: nvcc -V
- run: go get ./... - run: go get ./...
- name: go generate - name: go generate
@ -242,7 +243,7 @@ jobs:
$env:PATH="$gopath;$cudabin;$env:PATH" $env:PATH="$gopath;$cudabin;$env:PATH"
$env:OLLAMA_SKIP_CPU_GENERATE="1" $env:OLLAMA_SKIP_CPU_GENERATE="1"
go generate -x ./... go generate -x ./...
- name: "gather cuda dependencies" - name: 'gather cuda dependencies'
run: | run: |
$NVIDIA_DIR=(resolve-path 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\*\bin\')[0] $NVIDIA_DIR=(resolve-path 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\*\bin\')[0]
md "dist\deps" md "dist\deps"
@ -343,9 +344,9 @@ jobs:
environment: release environment: release
runs-on: linux runs-on: linux
env: env:
OLLAMA_SKIP_MANIFEST_CREATE: "1" OLLAMA_SKIP_MANIFEST_CREATE: '1'
BUILD_ARCH: amd64 BUILD_ARCH: amd64
PUSH: "1" PUSH: '1'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -375,9 +376,9 @@ jobs:
environment: release environment: release
runs-on: linux-arm64 runs-on: linux-arm64
env: env:
OLLAMA_SKIP_MANIFEST_CREATE: "1" OLLAMA_SKIP_MANIFEST_CREATE: '1'
BUILD_ARCH: arm64 BUILD_ARCH: arm64
PUSH: "1" PUSH: '1'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -385,7 +386,7 @@ jobs:
- name: Set Version - name: Set Version
shell: bash shell: bash
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: "Install Docker" - name: 'Install Docker'
run: | run: |
# Add Docker's official GPG key: # Add Docker's official GPG key:
env env
@ -433,8 +434,8 @@ jobs:
permissions: permissions:
contents: write contents: write
env: env:
OLLAMA_SKIP_IMAGE_BUILD: "1" OLLAMA_SKIP_IMAGE_BUILD: '1'
PUSH: "1" PUSH: '1'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set Version - name: Set Version
@ -462,7 +463,7 @@ jobs:
with: with:
name: ${{ env.RELEASE_VERSION }} name: ${{ env.RELEASE_VERSION }}
allowUpdates: true allowUpdates: true
artifacts: "dist/*" artifacts: 'dist/*'
draft: true draft: true
prerelease: true prerelease: true
omitBodyDuringUpdate: true omitBodyDuringUpdate: true