mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-20 06:51:02 +00:00
Log LLVM version in GHA
This commit is contained in:
@@ -29,24 +29,27 @@ jobs:
|
|||||||
# Use a unique key based on LLVM version or configuration files to avoid cache invalidation
|
# Use a unique key based on LLVM version or configuration files to avoid cache invalidation
|
||||||
key: llvm-build-${{ runner.os }}-${{ hashFiles('clone-llvm.sh', 'emscripten-build-llvm.sh') }}
|
key: llvm-build-${{ runner.os }}-${{ hashFiles('clone-llvm.sh', 'emscripten-build-llvm.sh') }}
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install LLVM Dependencies
|
||||||
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
# Install LLVM
|
|
||||||
curl -sSL --output llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.4/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
|
||||||
tar Jxf llvm.tar.xz
|
|
||||||
mv clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04 llvm18/
|
|
||||||
echo "$(pwd)/llvm18/bin" >> $GITHUB_PATH
|
|
||||||
# wget https://cmake.org/files/v3.20/cmake-3.20.0-linux-x86_64.sh && chmod +x cmake-3.20.0-linux-x86_64.sh && ./cmake-3.20.0-linux-x86_64.sh --prefix=/usr/local --skip-license
|
# wget https://cmake.org/files/v3.20/cmake-3.20.0-linux-x86_64.sh && chmod +x cmake-3.20.0-linux-x86_64.sh && ./cmake-3.20.0-linux-x86_64.sh --prefix=/usr/local --skip-license
|
||||||
# alias cmake='/usr/local/bin/cmake'
|
# alias cmake='/usr/local/bin/cmake'
|
||||||
sudo apt-get update && sudo apt-get install -y cmake ninja-build
|
sudo apt-get update && sudo apt-get install -y cmake ninja-build
|
||||||
rustup target add wasm32-unknown-emscripten
|
|
||||||
# Install Emscripten
|
# Install Emscripten
|
||||||
git clone https://github.com/emscripten-core/emsdk.git
|
git clone https://github.com/emscripten-core/emsdk.git
|
||||||
cd emsdk
|
cd emsdk
|
||||||
./emsdk install ${{ env.EMSCRIPTEN_VERSION }}
|
./emsdk install ${{ env.EMSCRIPTEN_VERSION }}
|
||||||
./emsdk activate ${{ env.EMSCRIPTEN_VERSION }}
|
./emsdk activate ${{ env.EMSCRIPTEN_VERSION }}
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
rustup target add wasm32-unknown-emscripten
|
||||||
|
# Install LLVM
|
||||||
|
curl -sSL --output llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.4/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
||||||
|
tar Jxf llvm.tar.xz
|
||||||
|
mv clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04 llvm18/
|
||||||
|
echo "$(pwd)/llvm18/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
rustup show
|
rustup show
|
||||||
cargo --version
|
cargo --version
|
||||||
@@ -54,6 +57,7 @@ jobs:
|
|||||||
cargo +nightly --version
|
cargo +nightly --version
|
||||||
cmake --version
|
cmake --version
|
||||||
bash --version
|
bash --version
|
||||||
|
llvm-config --version
|
||||||
|
|
||||||
- name: Build LLVM
|
- name: Build LLVM
|
||||||
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user