|
|
@@ -30,8 +30,8 @@ jobs:
|
|
|
- name: Run cargo clippy
|
|
|
run: cargo clippy --tests --bins -- -D warnings -D clippy::inconsistent-struct-constructor
|
|
|
|
|
|
- linux:
|
|
|
- name: Linux
|
|
|
+ linux-x86-64:
|
|
|
+ name: Linux x86-64
|
|
|
runs-on: ubuntu-20.04
|
|
|
container: ghcr.io/hyperledger-labs/solang:ci
|
|
|
steps:
|
|
|
@@ -47,7 +47,28 @@ jobs:
|
|
|
run: cargo test --verbose
|
|
|
- uses: actions/upload-artifact@master
|
|
|
with:
|
|
|
- name: solang-linux
|
|
|
+ name: solang-linux-x86-64
|
|
|
+ path: ./target/debug/solang
|
|
|
+
|
|
|
+ linux-arm:
|
|
|
+ name: Linux Arm
|
|
|
+ runs-on: linux-arm64
|
|
|
+ if: ${{ github.repository_owner == 'hyperledger-labs' }}
|
|
|
+ container: ghcr.io/hyperledger-labs/solang:ci
|
|
|
+ steps:
|
|
|
+ - name: Checkout sources
|
|
|
+ # Make sure "git describe --tags" works for solang --version
|
|
|
+ # checkout@v2 requires git 2.18 or higher, which is not in our image
|
|
|
+ uses: actions/checkout@v1
|
|
|
+ - name: Rust stable
|
|
|
+ run: rustup default 1.56.1
|
|
|
+ - name: Build
|
|
|
+ run: cargo build --verbose
|
|
|
+ - name: Run tests
|
|
|
+ run: cargo test --verbose
|
|
|
+ - uses: actions/upload-artifact@master
|
|
|
+ with:
|
|
|
+ name: solang-linux-arm64
|
|
|
path: ./target/debug/solang
|
|
|
|
|
|
windows:
|
|
|
@@ -172,7 +193,7 @@ jobs:
|
|
|
name: Solana Integration test
|
|
|
runs-on: ubuntu-20.04
|
|
|
container: ubuntu:20.04
|
|
|
- needs: linux
|
|
|
+ needs: linux-x86-64
|
|
|
services:
|
|
|
solana:
|
|
|
image: solanalabs/solana:v1.8.1
|
|
|
@@ -187,7 +208,7 @@ jobs:
|
|
|
node-version: '14'
|
|
|
- uses: actions/download-artifact@master
|
|
|
with:
|
|
|
- name: solang-linux
|
|
|
+ name: solang-linux-x86-64
|
|
|
path: bin
|
|
|
- run: |
|
|
|
chmod 755 ./bin/solang
|
|
|
@@ -206,7 +227,7 @@ jobs:
|
|
|
substrate:
|
|
|
name: Substrate Integration test
|
|
|
runs-on: ubuntu-20.04
|
|
|
- needs: linux
|
|
|
+ needs: linux-x86-64
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
uses: actions/checkout@v2
|
|
|
@@ -219,7 +240,7 @@ jobs:
|
|
|
node-version: '14'
|
|
|
- uses: actions/download-artifact@master
|
|
|
with:
|
|
|
- name: solang-linux
|
|
|
+ name: solang-linux-x86-64
|
|
|
path: bin
|
|
|
- run: |
|
|
|
chmod 755 ./bin/solang
|
|
|
@@ -237,7 +258,7 @@ jobs:
|
|
|
name: Burrow Integration test
|
|
|
runs-on: ubuntu-20.04
|
|
|
container: ubuntu:20.04
|
|
|
- needs: linux
|
|
|
+ needs: linux-x86-64
|
|
|
services:
|
|
|
burrow:
|
|
|
image: hyperledger/burrow:0.34.4
|
|
|
@@ -251,7 +272,7 @@ jobs:
|
|
|
node-version: '14'
|
|
|
- uses: actions/download-artifact@master
|
|
|
with:
|
|
|
- name: solang-linux
|
|
|
+ name: solang-linux-x86-64
|
|
|
path: bin
|
|
|
- run: |
|
|
|
chmod 755 ./bin/solang
|
|
|
@@ -270,13 +291,13 @@ jobs:
|
|
|
vscode:
|
|
|
name: Visual Code Extension
|
|
|
runs-on: ubuntu-20.04
|
|
|
- needs: linux
|
|
|
+ needs: linux-x86-64
|
|
|
steps:
|
|
|
- name: Checkout
|
|
|
uses: actions/checkout@v2
|
|
|
- uses: actions/download-artifact@master
|
|
|
with:
|
|
|
- name: solang-linux
|
|
|
+ name: solang-linux-x86-64
|
|
|
path: bin
|
|
|
- run: |
|
|
|
chmod 755 ./bin/solang
|