6.3.3 #7
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: . | |
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-6.3.3 --single-branch https://github.com/ROCm/llvm-project ${{ github.workspace }}/llvm-project | |
cd ${{ github.workspace }}/llvm-project | |
git checkout e5bf7e55c91490b07c49d8960fa7983d864936c4 | |
rm -rf .git | |
- name: Install build dependencies | |
run: | | |
brew update | |
brew install --formula cmake rust | |
- 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: v6.1.x | |
name: Release v6.1.x | |
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 }} |