Support solc v0.8.26 (#22)

This commit is contained in:
Cyrill Leutwiler
2024-06-05 12:03:16 +02:00
committed by GitHub
parent 68ec8be49f
commit a04eacabff
2 changed files with 26 additions and 27 deletions
+25 -26
View File
@@ -2,46 +2,45 @@ name: Build
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
pull_request: pull_request:
branches: [ "main" ] branches: ["main"]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build-ubuntu-x86: build-ubuntu-x86:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install solc - name: Install solc
run: | run: |
mkdir -p solc mkdir -p solc
curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-static-linux curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.26/solc-static-linux
chmod +x solc/solc chmod +x solc/solc
echo "$(pwd)/solc/" >> $GITHUB_PATH echo "$(pwd)/solc/" >> $GITHUB_PATH
- name: Install LLVM - name: Install LLVM
run: | run: |
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
- name: Install apt dependencies - name: Install apt dependencies
run: sudo apt update && sudo apt install -y libtinfo5 run: sudo apt update && sudo apt install -y libtinfo5
- name: Format - name: Format
run: make format run: make format
- name: Clippy - name: Clippy
run: make clippy run: make clippy
- name: Test cargo workspace - name: Test cargo workspace
run: make test-workspace run: make test-workspace
- name: Test CLI - name: Test CLI
run: make test-cli run: make test-cli
+1 -1
View File
@@ -37,7 +37,7 @@ impl Compiler {
pub const FIRST_VIA_IR_VERSION: semver::Version = semver::Version::new(0, 8, 13); pub const FIRST_VIA_IR_VERSION: semver::Version = semver::Version::new(0, 8, 13);
/// The last supported version of `solc`. /// The last supported version of `solc`.
pub const LAST_SUPPORTED_VERSION: semver::Version = semver::Version::new(0, 8, 25); pub const LAST_SUPPORTED_VERSION: semver::Version = semver::Version::new(0, 8, 26);
/// A shortcut constructor. /// A shortcut constructor.
/// Different tools may use different `executable` names. For example, the integration tester /// Different tools may use different `executable` names. For example, the integration tester