|
@@ -10,24 +10,6 @@ env:
|
|
|
LLVM_PROFILE_FILE: ${{ github.workspace }}/target/solang-%p-%10m.profraw
|
|
LLVM_PROFILE_FILE: ${{ github.workspace }}/target/solang-%p-%10m.profraw
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
- repolinter:
|
|
|
|
|
- name: Repolinter
|
|
|
|
|
- runs-on: solang-ubuntu-latest
|
|
|
|
|
- # spdx runs on python 3.10 but not any later versions
|
|
|
|
|
- container: ubuntu:22.04
|
|
|
|
|
- steps:
|
|
|
|
|
- - name: Install Python and npm
|
|
|
|
|
- run: |
|
|
|
|
|
- apt-get update
|
|
|
|
|
- apt-get install -y python3 git npm
|
|
|
|
|
- - name: Checkout sources
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
- - name: Run repolinter
|
|
|
|
|
- run: npx repolinter --rulesetUrl https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/master/repo_structure/repolint.json
|
|
|
|
|
- - uses: enarx/spdx@master
|
|
|
|
|
- with:
|
|
|
|
|
- licenses: Apache-2.0
|
|
|
|
|
-
|
|
|
|
|
docs:
|
|
docs:
|
|
|
name: Docs
|
|
name: Docs
|
|
|
runs-on: solang-ubuntu-latest
|
|
runs-on: solang-ubuntu-latest
|
|
@@ -69,7 +51,7 @@ jobs:
|
|
|
- name: Install Rust
|
|
- name: Install Rust
|
|
|
uses: dtolnay/rust-toolchain@master
|
|
uses: dtolnay/rust-toolchain@master
|
|
|
with:
|
|
with:
|
|
|
- toolchain: 1.81.0
|
|
|
|
|
|
|
+ toolchain: 1.82.0
|
|
|
components: |
|
|
components: |
|
|
|
llvm-tools
|
|
llvm-tools
|
|
|
clippy
|
|
clippy
|
|
@@ -126,7 +108,7 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
sudo apt-get update
|
|
sudo apt-get update
|
|
|
sudo apt-get install -y gcc g++ make
|
|
sudo apt-get install -y gcc g++ make
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
- name: Get LLVM
|
|
- name: Get LLVM
|
|
|
run: curl -sSL --output llvm16.0-linux-arm64.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-linux-arm64.tar.xz
|
|
run: curl -sSL --output llvm16.0-linux-arm64.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-linux-arm64.tar.xz
|
|
|
- name: Extract LLVM
|
|
- name: Extract LLVM
|
|
@@ -159,7 +141,7 @@ jobs:
|
|
|
# Use C:\ as D:\ might run out of space
|
|
# Use C:\ as D:\ might run out of space
|
|
|
- name: "Use C: for rust temporary files"
|
|
- name: "Use C: for rust temporary files"
|
|
|
run: echo "CARGO_TARGET_DIR=C:\target" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
|
|
run: echo "CARGO_TARGET_DIR=C:\target" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
with:
|
|
with:
|
|
|
components: clippy
|
|
components: clippy
|
|
|
# We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items
|
|
# We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items
|
|
@@ -185,7 +167,7 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
with:
|
|
with:
|
|
|
submodules: recursive
|
|
submodules: recursive
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
- name: Get LLVM
|
|
- name: Get LLVM
|
|
|
run: curl -sSL --output llvm16.0-mac-arm.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-mac-arm.tar.xz
|
|
run: curl -sSL --output llvm16.0-mac-arm.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-mac-arm.tar.xz
|
|
|
- name: Extract LLVM
|
|
- name: Extract LLVM
|
|
@@ -211,7 +193,7 @@ jobs:
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
with:
|
|
with:
|
|
|
submodules: recursive
|
|
submodules: recursive
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
- name: Get LLVM
|
|
- name: Get LLVM
|
|
|
run: wget -q -O llvm16.0-mac-intel.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-mac-intel.tar.xz
|
|
run: wget -q -O llvm16.0-mac-intel.tar.xz https://github.com/hyperledger-solang/solang-llvm/releases/download/llvm16-0/llvm16.0-mac-intel.tar.xz
|
|
|
- name: Extract LLVM
|
|
- name: Extract LLVM
|
|
@@ -273,7 +255,7 @@ jobs:
|
|
|
- uses: actions/setup-node@v4
|
|
- uses: actions/setup-node@v4
|
|
|
with:
|
|
with:
|
|
|
node-version: '16'
|
|
node-version: '16'
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
- name: Setup yarn
|
|
- name: Setup yarn
|
|
|
run: npm install -g yarn
|
|
run: npm install -g yarn
|
|
|
- uses: actions/download-artifact@v4.1.8
|
|
- uses: actions/download-artifact@v4.1.8
|
|
@@ -324,7 +306,7 @@ jobs:
|
|
|
- uses: actions/setup-node@v4
|
|
- uses: actions/setup-node@v4
|
|
|
with:
|
|
with:
|
|
|
node-version: '16'
|
|
node-version: '16'
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
with:
|
|
with:
|
|
|
target: wasm32-unknown-unknown
|
|
target: wasm32-unknown-unknown
|
|
|
- uses: actions/download-artifact@v4.1.8
|
|
- uses: actions/download-artifact@v4.1.8
|
|
@@ -371,7 +353,7 @@ jobs:
|
|
|
- uses: actions/setup-node@v4
|
|
- uses: actions/setup-node@v4
|
|
|
with:
|
|
with:
|
|
|
node-version: '16'
|
|
node-version: '16'
|
|
|
- - uses: dtolnay/rust-toolchain@1.81.0
|
|
|
|
|
|
|
+ - uses: dtolnay/rust-toolchain@1.82.0
|
|
|
- uses: actions/download-artifact@v4.1.8
|
|
- uses: actions/download-artifact@v4.1.8
|
|
|
with:
|
|
with:
|
|
|
name: solang-linux-x86-64
|
|
name: solang-linux-x86-64
|
|
@@ -548,7 +530,7 @@ jobs:
|
|
|
- name: Install Rust
|
|
- name: Install Rust
|
|
|
uses: dtolnay/rust-toolchain@master
|
|
uses: dtolnay/rust-toolchain@master
|
|
|
with:
|
|
with:
|
|
|
- toolchain: 1.81.0
|
|
|
|
|
|
|
+ toolchain: 1.82.0
|
|
|
components: llvm-tools
|
|
components: llvm-tools
|
|
|
- name: Install cargo-llvm-cov
|
|
- name: Install cargo-llvm-cov
|
|
|
uses: taiki-e/install-action@cargo-llvm-cov
|
|
uses: taiki-e/install-action@cargo-llvm-cov
|