Skip to content

Commit c444707

Browse files
authored
Release v0.2.1 (#1120)
# v0.2.1: Rio ## Added - The Anchor IDL data structure is now generated for every Solana contract, although the actual IDL json file is not yet saved. [LucasSte](https://github.com/LucasSte) ## Changed - The Solana target now utilizes eight byte Anchor discriminators for function dispatch instead of the four byte Ethereum selectors. [LucasSte](https://github.com/LucasSte) - The deployment of contracts on Solana now follows the same scheme as Anchor. [seanyoung](https://github.com/seanyoung) - Compares between rational literals and integers are not allowed. [seanyoung](https://github.com/seanyoung) - Overriding the function selector value is now done using the `@selector([1, 2, 3, 4])` syntax, and the old syntax `selector=hex"12345678"` has been removed. - `msg.sender` was not implemented correctly on Solana, and [has now been removed](https://solang.readthedocs.io/en/latest/targets/solana.html#msg-sender-solana). [seanyoung](https://github.com/seanyoung) - Solang now uses LLVM 14. [LucasSte](https://github.com/LucasSte) ## Fixed - Many bugs have been fixed by [seanyoung](https://github.com/seanyoung), [LucasSte](https://github.com/LucasSte) and [xermicus](https://github.com/xermicus) Signed-off-by: Lucas Steuernagel <[email protected]>
1 parent 3ca41d8 commit c444707

File tree

11 files changed

+121
-104
lines changed

11 files changed

+121
-104
lines changed

.github/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ RUN apt-get update -y
88
RUN apt-get upgrade -y
99
RUN apt-get install -y libz-dev pkg-config libssl-dev git cmake ninja-build gcc g++ python3
1010

11-
RUN git clone --single-branch --branch solana-rustc/13.0-2021-08-08 \
11+
RUN git clone --single-branch --branch solana-rustc/14.0-2022-03-22 \
1212
https://github.com/solana-labs/llvm-project.git
1313

1414
WORKDIR /llvm-project
1515

1616
RUN cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off \
1717
-DLLVM_ENABLE_PROJECTS=clang\;lld \
1818
-DLLVM_TARGETS_TO_BUILD=WebAssembly\;BPF \
19-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/llvm13.0 llvm
19+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/llvm14.0 llvm
2020

2121
RUN cmake --build . --target install
2222

@@ -31,9 +31,9 @@ RUN apt-get autoclean
3131
# Get Rust
3232
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain 1.63.0
3333

34-
COPY --from=builder /llvm13.0 /llvm13.0/
34+
COPY --from=builder /llvm14.0 /llvm14.0/
3535

36-
ENV PATH="/llvm13.0/bin:/root/.cargo/bin:/root/.local/share/solana/install/active_release/bin:${PATH}"
36+
ENV PATH="/llvm14.0/bin:/root/.cargo/bin:/root/.local/share/solana/install/active_release/bin:${PATH}"
3737

3838
# Install Solana (x86-64 only, does not work on arm)
3939
RUN if test `arch` = x86_64; then sh -c "$(curl -sSfL https://release.solana.com/v1.11.10/install)"; fi

.github/workflows/build-llvm.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
with:
16-
tag_name: llvm13.0-1
17-
release_name: LLVM Libraries v13.0 (v1)
16+
tag_name: llvm14.0-1
17+
release_name: LLVM Libraries v14.0 (v1)
1818
draft: false
1919
prerelease: false
2020

@@ -23,27 +23,27 @@ jobs:
2323
runs-on: ubuntu-20.04
2424
needs: create
2525
steps:
26-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
26+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
2727
- name: Install Ninja
2828
uses: llvm/actions/install-ninja@main
2929
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
3030
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
3131
-DLLVM_ENABLE_PROJECTS='clang;lld'
3232
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
33-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
33+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
3434
working-directory: ./llvm-project/
3535
- run: cmake --build . --target install
3636
working-directory: ./llvm-project/
37-
- run: tar Jcf ./llvm13.0-linux-x86-64.tar.xz ./llvm13.0/
37+
- run: tar Jcf ./llvm14.0-linux-x86-64.tar.xz ./llvm14.0/
3838
- name: Upload Release Asset
3939
id: upload-release-asset
4040
uses: actions/upload-release-asset@v1
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
with:
4444
upload_url: ${{ needs.create.outputs.upload_url }}
45-
asset_path: ./llvm13.0-linux-x86-64.tar.xz
46-
asset_name: llvm13.0-linux-x86-64.tar.xz
45+
asset_path: ./llvm14.0-linux-x86-64.tar.xz
46+
asset_name: llvm14.0-linux-x86-64.tar.xz
4747
asset_content_type: application/x-xz
4848

4949
linux-arm64:
@@ -52,25 +52,25 @@ jobs:
5252
if: ${{ github.repository_owner == 'hyperledger' }}
5353
needs: create
5454
steps:
55-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
55+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
5656
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
5757
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
5858
-DLLVM_ENABLE_PROJECTS='clang;lld'
5959
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
60-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
60+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
6161
working-directory: ./llvm-project/
6262
- run: cmake --build . --target install
6363
working-directory: ./llvm-project/
64-
- run: tar Jcf ./llvm13.0-linux-arm64.tar.xz ./llvm13.0/
64+
- run: tar Jcf ./llvm14.0-linux-arm64.tar.xz ./llvm14.0/
6565
- name: Upload Release Asset
6666
id: upload-release-asset
6767
uses: actions/upload-release-asset@v1
6868
env:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7070
with:
7171
upload_url: ${{ needs.create.outputs.upload_url }}
72-
asset_path: ./llvm13.0-linux-arm64.tar.xz
73-
asset_name: llvm13.0-linux-arm64.tar.xz
72+
asset_path: ./llvm14.0-linux-arm64.tar.xz
73+
asset_name: llvm14.0-linux-arm64.tar.xz
7474
asset_content_type: application/x-xz
7575

7676
mac-arm:
@@ -79,55 +79,55 @@ jobs:
7979
runs-on: [self-hosted, macOS, ARM64, MacStadium]
8080
if: ${{ github.repository_owner == 'hyperledger' }}
8181
steps:
82-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
82+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
8383
# - name: Install Ninja
8484
# uses: llvm/actions/install-ninja@main
8585
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
8686
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
8787
-DLLVM_ENABLE_PROJECTS='clang;lld'
8888
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
89-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
89+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
9090
working-directory: ./llvm-project/
9191
- run: cmake --build . --target install
9292
working-directory: ./llvm-project/
93-
- run: tar Jcf ./llvm13.0-mac-arm.tar.xz ./llvm13.0/
93+
- run: tar Jcf ./llvm14.0-mac-arm.tar.xz ./llvm14.0/
9494
- name: Upload Release Asset
9595
id: upload-release-asset
9696
uses: actions/upload-release-asset@v1
9797
env:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9999
with:
100100
upload_url: ${{ needs.create.outputs.upload_url }}
101-
asset_path: ./llvm13.0-mac-arm.tar.xz
102-
asset_name: llvm13.0-mac-arm.tar.xz
101+
asset_path: ./llvm14.0-mac-arm.tar.xz
102+
asset_name: llvm14.0-mac-arm.tar.xz
103103
asset_content_type: application/x-xz
104104

105105
mac-intel:
106106
name: Mac Intel
107107
needs: create
108108
runs-on: macos-11
109109
steps:
110-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
110+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
111111
- name: Install Ninja
112112
uses: llvm/actions/install-ninja@main
113113
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
114114
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
115115
-DLLVM_ENABLE_PROJECTS='clang;lld'
116116
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
117-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
117+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
118118
working-directory: ./llvm-project/
119119
- run: cmake --build . --target install
120120
working-directory: ./llvm-project/
121-
- run: tar Jcf ./llvm13.0-mac-intel.tar.xz ./llvm13.0/
121+
- run: tar Jcf ./llvm14.0-mac-intel.tar.xz ./llvm14.0/
122122
- name: Upload Release Asset
123123
id: upload-release-asset
124124
uses: actions/upload-release-asset@v1
125125
env:
126126
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127127
with:
128128
upload_url: ${{ needs.create.outputs.upload_url }}
129-
asset_path: ./llvm13.0-mac-intel.tar.xz
130-
asset_name: llvm13.0-mac-intel.tar.xz
129+
asset_path: ./llvm14.0-mac-intel.tar.xz
130+
asset_name: llvm14.0-mac-intel.tar.xz
131131
asset_content_type: application/x-xz
132132

133133
windows:
@@ -136,7 +136,7 @@ jobs:
136136
runs-on: windows-latest
137137
steps:
138138
- run: Get-Volume
139-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
139+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
140140
# We may not have enough space to compile llvm, see https://github.com/actions/virtual-environments/issues/326
141141
working-directory: C:\
142142
- name: Setup Windows
@@ -148,18 +148,18 @@ jobs:
148148
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
149149
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
150150
'-DLLVM_ENABLE_PROJECTS=clang;lld'
151-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=C:/llvm13.0 llvm
151+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=C:/llvm14.0 llvm
152152
working-directory: C:\llvm-project
153153
- run: cmake --build . --target install
154154
working-directory: C:\llvm-project
155-
- run: Compress-Archive -Path C:\llvm13.0 -DestinationPath C:\llvm13.0-win.zip
155+
- run: Compress-Archive -Path C:\llvm14.0 -DestinationPath C:\llvm14.0-win.zip
156156
- name: Upload Release Asset
157157
id: upload-release-asset
158158
uses: actions/upload-release-asset@v1
159159
env:
160160
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161161
with:
162162
upload_url: ${{ needs.create.outputs.upload_url }}
163-
asset_path: C:\llvm13.0-win.zip
164-
asset_name: llvm13.0-win.zip
163+
asset_path: C:\llvm14.0-win.zip
164+
asset_name: llvm14.0-win.zip
165165
asset_content_type: application/zip

.github/workflows/release.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
submodules: recursive
17-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
17+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
1818
- name: Install Ninja
1919
uses: llvm/actions/install-ninja@main
2020
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
2121
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
2222
-DLLVM_ENABLE_PROJECTS='clang;lld'
2323
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
24-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
24+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
2525
working-directory: ./llvm-project/
2626
- run: cmake --build . --target install
2727
working-directory: ./llvm-project/
28-
- run: tar Jcf ./llvm13.0-linux-x86-64.tar.xz ./llvm13.0/
28+
- run: tar Jcf ./llvm14.0-linux-x86-64.tar.xz ./llvm14.0/
2929
- name: Upload llvm
3030
uses: svenstaro/upload-release-action@v2
3131
with:
3232
repo_token: ${{ secrets.GITHUB_TOKEN }}
33-
file: llvm13.0-linux-x86-64.tar.xz
34-
asset_name: llvm13.0-linux-x86-64.tar.xz
33+
file: llvm14.0-linux-x86-64.tar.xz
34+
asset_name: llvm14.0-linux-x86-64.tar.xz
3535
tag: ${{ github.ref }}
3636
- name: Add LLVM to Path
37-
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
37+
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH
3838
- name: Rust stable
3939
run: rustup default 1.63.0
4040
- name: Build
@@ -58,26 +58,26 @@ jobs:
5858
uses: actions/checkout@v2
5959
with:
6060
submodules: recursive
61-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
61+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
6262
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
6363
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
6464
-DLLVM_ENABLE_PROJECTS='clang;lld'
6565
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
66-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
66+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
6767
working-directory: ./llvm-project/
6868
- run: cmake --build . --target install
6969
working-directory: ./llvm-project/
7070
# compression takes a long time on linux-arm64, use multithreaded compression
71-
- run: tar cf ./llvm13.0-linux-arm64.tar.xz -I 'xz -T 0' ./llvm13.0/
71+
- run: tar cf ./llvm14.0-linux-arm64.tar.xz -I 'xz -T 0' ./llvm14.0/
7272
- name: Upload llvm
7373
uses: svenstaro/upload-release-action@v2
7474
with:
7575
repo_token: ${{ secrets.GITHUB_TOKEN }}
76-
file: llvm13.0-linux-arm64.tar.xz
77-
asset_name: llvm13.0-linux-arm64.tar.xz
76+
file: llvm14.0-linux-arm64.tar.xz
77+
asset_name: llvm14.0-linux-arm64.tar.xz
7878
tag: ${{ github.ref }}
7979
- name: Add LLVM to Path
80-
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
80+
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH
8181
- name: Rust stable
8282
run: rustup default 1.63.0
8383
- name: Build
@@ -101,7 +101,7 @@ jobs:
101101
with:
102102
submodules: recursive
103103
- uses: dtolnay/[email protected]
104-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
104+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
105105
# We may not have enough space to compile llvm, see https://github.com/actions/virtual-environments/issues/326
106106
working-directory: C:\
107107
- name: Setup Windows
@@ -113,20 +113,20 @@ jobs:
113113
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
114114
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
115115
'-DLLVM_ENABLE_PROJECTS=clang;lld'
116-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=C:/llvm13.0 llvm
116+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=C:/llvm14.0 llvm
117117
working-directory: C:\llvm-project
118118
- run: cmake --build . --target install
119119
working-directory: C:\llvm-project
120-
- run: Compress-Archive -Path C:\llvm13.0 -DestinationPath C:\llvm13.0-win.zip
120+
- run: Compress-Archive -Path C:\llvm14.0 -DestinationPath C:\llvm14.0-win.zip
121121
- name: Upload llvm
122122
uses: svenstaro/upload-release-action@v2
123123
with:
124124
repo_token: ${{ secrets.GITHUB_TOKEN }}
125-
file: C:\llvm13.0-win.zip
126-
asset_name: llvm13.0-win.zip
125+
file: C:\llvm14.0-win.zip
126+
asset_name: llvm14.0-win.zip
127127
tag: ${{ github.ref }}
128128
- name: Add LLVM to Path
129-
run: echo "c:\llvm13.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
129+
run: echo "c:\llvm14.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
130130
- name: Build
131131
run: cargo build --release --verbose
132132
- name: Run tests
@@ -149,27 +149,27 @@ jobs:
149149
with:
150150
submodules: recursive
151151
- uses: dtolnay/[email protected]
152-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
152+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
153153
- name: Install Ninja
154154
uses: llvm/actions/install-ninja@main
155155
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
156156
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
157157
-DLLVM_ENABLE_PROJECTS='clang;lld'
158158
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
159-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
159+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
160160
working-directory: ./llvm-project/
161161
- run: cmake --build . --target install
162162
working-directory: ./llvm-project/
163-
- run: tar Jcf ./llvm13.0-mac-arm.tar.xz ./llvm13.0/
163+
- run: tar Jcf ./llvm14.0-mac-arm.tar.xz ./llvm14.0/
164164
- name: Upload llvm
165165
uses: svenstaro/upload-release-action@v2
166166
with:
167167
repo_token: ${{ secrets.GITHUB_TOKEN }}
168-
file: llvm13.0-mac-arm.tar.xz
169-
asset_name: llvm13.0-mac-arm.tar.xz
168+
file: llvm14.0-mac-arm.tar.xz
169+
asset_name: llvm14.0-mac-arm.tar.xz
170170
tag: ${{ github.ref }}
171171
- name: Add LLVM to Path
172-
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
172+
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH
173173
- name: Build
174174
run: cargo build --release --verbose
175175
- name: Run tests
@@ -194,27 +194,27 @@ jobs:
194194
with:
195195
submodules: recursive
196196
- uses: dtolnay/[email protected]
197-
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
197+
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git
198198
- name: Install Ninja
199199
uses: llvm/actions/install-ninja@main
200200
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off
201201
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off
202202
-DLLVM_ENABLE_PROJECTS='clang;lld'
203203
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF'
204-
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm
204+
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm
205205
working-directory: ./llvm-project/
206206
- run: cmake --build . --target install
207207
working-directory: ./llvm-project/
208-
- run: tar Jcf ./llvm13.0-mac-intel.tar.xz ./llvm13.0/
208+
- run: tar Jcf ./llvm14.0-mac-intel.tar.xz ./llvm14.0/
209209
- name: Upload llvm
210210
uses: svenstaro/upload-release-action@v2
211211
with:
212212
repo_token: ${{ secrets.GITHUB_TOKEN }}
213-
file: llvm13.0-mac-intel.tar.xz
214-
asset_name: llvm13.0-mac-intel.tar.xz
213+
file: llvm14.0-mac-intel.tar.xz
214+
asset_name: llvm14.0-mac-intel.tar.xz
215215
tag: ${{ github.ref }}
216216
- name: Add LLVM to Path
217-
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
217+
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH
218218
- name: Build
219219
run: cargo build --release --verbose
220220
- name: Run tests

0 commit comments

Comments
 (0)