bump to 6.4.1 #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release | |
env: | |
DOWNLOAD_CACHE_VERSION: '8' | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PYTHONPATH: . | |
RELEASE_VER: '6.4.1' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
osxbuild: | |
name: Build on MacOS | |
runs-on: macos-15 | |
permissions: | |
contents: write | |
timeout-minutes: 60 | |
steps: | |
- name: Clone LLVM and AMD projects | |
run: | | |
git clone --depth 1 -b rocm-${{ env.RELEASE_VER }} --single-branch https://github.com/ROCm/llvm-project ${{ github.workspace }}/llvm-project | |
cd ${{ github.workspace }}/llvm-project | |
git rev-parse HEAD | |
rm -rf .git | |
- name: Install build dependencies | |
run: | | |
brew update | |
brew install --formula rust | |
- uses: lukka/get-cmake@latest | |
with: | |
cmakeVersion: "~3.31.0" | |
- name: Build LLVM | |
run: | | |
cd ${{ github.workspace }}/llvm-project | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="llvm;clang;lld" -DLLVM_TARGETS_TO_BUILD="AMDGPU" ../llvm | |
make -j$(sysctl -n hw.ncpu) | |
- name: Build device-libs | |
run: | | |
cd ${{ github.workspace }}/llvm-project/amd/device-libs | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{ github.workspace }}/llvm-project/build" .. | |
make -j$(sysctl -n hw.ncpu) | |
- name: Build comgr | |
run: | | |
cd ${{ github.workspace }}/llvm-project/amd/comgr | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{ github.workspace }}/llvm-project/build;${{ github.workspace }}/llvm-project/amd/device-libs/build" -DCOMGR_DISABLE_SPIRV=1 -DBUILD_TESTING=OFF .. | |
make -j$(sysctl -n hw.ncpu) | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: v${{ env.RELEASE_VER }} | |
name: Release v${{ env.RELEASE_VER }} | |
draft: false | |
prerelease: false | |
generate_release_notes: true | |
files: | | |
${{ github.workspace }}/llvm-project/amd/comgr/build/libamd_comgr.dylib | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |