Skip to content

Commit 99996f5

Browse files
authored
test release.yml
1 parent 8ea7c5e commit 99996f5

File tree

1 file changed

+14
-28
lines changed

1 file changed

+14
-28
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,22 @@ jobs:
1919
steps:
2020
- name: Clone LLVM and AMD projects
2121
run: |
22-
git clone --depth 1 -b rocm-6.1.x https://github.com/ROCm/llvm-project ${{ github.workspace }}/llvm-project
23-
cd ${{ github.workspace }}/llvm-project
24-
git checkout 669db884972e769450470020c06a6f132a8a065b
25-
rm -rf .git
26-
- name: Install build dependencies
27-
run: |
28-
brew update
29-
brew install --formula cmake rust
30-
- name: Build LLVM
31-
run: |
32-
cd ${{ github.workspace }}/llvm-project
33-
mkdir build && cd build
34-
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="llvm;clang;lld" -DLLVM_TARGETS_TO_BUILD="AMDGPU" ../llvm
35-
make -j$(sysctl -n hw.ncpu)
36-
- name: Build device-libs
37-
run: |
38-
cd ${{ github.workspace }}/llvm-project/amd/device-libs
39-
mkdir build && cd build
40-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{ github.workspace }}/llvm-project/build" ..
41-
make -j$(sysctl -n hw.ncpu)
42-
- name: Build comgr
43-
run: |
44-
cd ${{ github.workspace }}/llvm-project/amd/comgr
45-
mkdir build && cd build
46-
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 ..
47-
make -j$(sysctl -n hw.ncpu)
48-
- name: Upload release
22+
mkdir -p ${{ github.workspace }}/llvm-project/amd/comgr/build/
23+
echo x > libamd_comgr.dylib
24+
- name: Create GitHub Release
25+
id: create_release
26+
uses: actions/create-release@v1
27+
with:
28+
tag_name: v6.1.0
29+
release_name: Build v6.1.0
30+
draft: false
31+
prerelease: false
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Upload libamd_comgr.dylib to Release
4935
uses: actions/upload-release-asset@v1
5036
with:
51-
upload_url: ${{ github.event.release.upload_url }}
37+
upload_url: ${{ steps.create_release.outputs.upload_url }}
5238
asset_path: ${{ github.workspace }}/llvm-project/amd/comgr/build/libamd_comgr.dylib
5339
asset_name: libamd_comgr.dylib
5440
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)