@@ -14,48 +14,50 @@ jobs:
14
14
strategy :
15
15
matrix :
16
16
# os: [ubuntu-20.04, macos-11, windows-2019]
17
- os : [ubuntu-20.04]
17
+ os : [ubuntu-20.04, macos-11 ]
18
18
runs-on : ${{ matrix.os }}
19
- permissions :
20
- contents : write # for creating releases
21
- container :
22
- # Intentionally old ubuntu version with old glibc.
23
- image : ubuntu:18.04
19
+ # container:
20
+ # # Intentionally old ubuntu version with old glibc.
21
+ # image: ubuntu:18.04
24
22
steps :
25
23
- name : checkout
26
24
uses : actions/checkout@v3
27
25
28
26
# Install build dependencies.
29
- - run : " apt update && apt install -y clang git wget build-essential python3 unzip"
30
- # cmake from package manager is to old for the LLVM build.
31
- - run : " wget https://github.com/Kitware/CMake/releases/download/v3.30.0-rc2/cmake-3.30.0-rc2-linux-x86_64.sh"
32
- - run : " chmod +x cmake-*.sh"
33
- - run : " ./cmake-*.sh --skip-license --prefix=/usr"
34
- # ninja from the package manager is to old for the LLVM build.
35
- - run : " wget https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip"
36
- - run : " unzip ninja-linux.zip -d /usr/bin/"
27
+ # - if: contains(matrix.os, 'ubuntu')
28
+ # run: |
29
+ # apt update && apt install -y clang git wget build-essential python3 unzip
30
+ # # cmake from package manager is to old for the LLVM build.
31
+ # wget https://github.com/Kitware/CMake/releases/download/v3.30.0-rc2/cmake-3.30.0-rc2-linux-x86_64.sh
32
+ # chmod +x cmake-*.sh
33
+ # ./cmake-*.sh --skip-license --prefix=/usr
34
+ # # ninja from the package manager is to old for the LLVM build.
35
+ # wget https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip
36
+ # unzip ninja-linux.zip -d /usr/bin/
37
37
# Build and package LLVM.
38
- - run : " ./build-llvm-libs.sh"
38
+ - run : " ./build-llvm-libs.sh llvm-static-libs-${{ matrix.os }}.tar.gz "
39
39
- uses : actions/upload-artifact@v3
40
40
with :
41
- name : llvm-static-libs
42
- path : llvm-static-libs.tar.gz
43
- - name : create release
44
- id : create-release
45
- uses : actions/create-release@v1
46
- env :
47
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ name : llvm-static-libs-${{ matrix.os }}
42
+ path : llvm-static-libs-${{ matrix.os }}.tar.gz
43
+
44
+ create_release :
45
+ name : Create release
46
+ runs-on : ubuntu-latest
47
+ needs : [build_llvm]
48
+ permissions :
49
+ contents : write # for creating releases
50
+ steps :
51
+ - name : Download Artifacts
52
+ uses : actions/download-artifact@v4
48
53
with :
49
- tag_name : ${{ inputs.tag }}
50
- release_name : ${{ inputs.tag }}
51
- draft : false
52
- prerelease : true
53
- - name : upload linux artifact
54
- uses : actions/upload-release-asset@v1
55
- env :
56
- GITHUB_TOKEN : ${{ github.token }}
54
+ pattern : llvm-static-*
55
+ merge-multiple : true
56
+
57
+ - name : Create Release
58
+ uses : softprops/action-gh-release@v2
57
59
with :
58
- upload_url : ${{ steps.create-release.outputs.upload_url }}
59
- asset_path : ./llvm-static-libs.tar.xz
60
- asset_name : llvm-static-linux-amd64.tar.xz
61
- asset_content_type : application/gzip
60
+ name : LLVM tooling libraries ${{ inputs.tag }}
61
+ tag_name : ${{ inputs.tag }}
62
+ files : llvm-static-*
63
+ fail_on_unmatched_files : true
0 commit comments