mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-18 08:11:05 +00:00
Switch GHA to ubuntu
This commit is contained in:
@@ -13,12 +13,10 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-revive-wasm:
|
build-revive-wasm:
|
||||||
runs-on: parity-large
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
container:
|
|
||||||
image: paritytech/ci-unified:bullseye-1.81.0
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -34,15 +32,14 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
apt remove -y 'llvm-15*' 'libllvm15*'
|
|
||||||
# Install LLVM
|
# 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
|
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
|
tar Jxf llvm.tar.xz
|
||||||
mv clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04 llvm18/
|
mv clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04 llvm18/
|
||||||
echo "$(pwd)/llvm18/bin" >> $GITHUB_PATH
|
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'
|
||||||
apt-get update && apt-get install -y ninja-build
|
apt-get update && apt-get install -y cmake ninja-build
|
||||||
rustup target add wasm32-unknown-emscripten
|
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
|
||||||
@@ -61,9 +58,6 @@ jobs:
|
|||||||
- name: Build LLVM
|
- name: Build LLVM
|
||||||
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
export CC="clang-18"
|
|
||||||
export CXX="clang-18"
|
|
||||||
export LLVM_VERSION="18"
|
|
||||||
export EMSDK_ROOT=${PWD}/emsdk
|
export EMSDK_ROOT=${PWD}/emsdk
|
||||||
./emscripten-build-llvm.sh
|
./emscripten-build-llvm.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user