Skip to content

Commit

Permalink
Add windows to CI tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <sean@mess.org>
  • Loading branch information
seanyoung committed Aug 10, 2020
1 parent 54f878c commit 1b5f4ec
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Expand Up @@ -7,7 +7,7 @@ name: Build Release Binaries

jobs:
linux:
name: Build Linux
name: Linux
runs-on: ubuntu-20.04
container: hyperledgerlabs/solang:ci
steps:
Expand Down Expand Up @@ -41,15 +41,15 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2
- name: Add LLVM to Path
run: echo "::add-path::c:\llvm80\bin"
run: echo "::add-path::c:\llvm80\bin"
- name: Download LLVM
run: curl -sS -o c:\llvm.zip https://solang.io/download/llvm80.zip
- name: Extract LLVM
# unzip exists but always exits with code 1
run: powershell Expand-Archive c:\llvm.zip -DestinationPath c:\
- name: Compile stdlib
run: clang --target=wasm32 -c -emit-llvm -O3 -ffreestanding -fno-builtin -Wall stdlib.c sha3.c substrate.c ripemd160.c
working-directory: ./stdlib
working-directory: ./stdlib
- name: Build
run: cargo build --release --verbose
- name: Run tests
Expand Down
29 changes: 25 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -26,8 +26,8 @@ jobs:
command: clippy
args: -- -D warnings

test:
name: Test
linux:
name: Linux
runs-on: ubuntu-20.04
container: hyperledgerlabs/solang:ci
steps:
Expand All @@ -47,8 +47,29 @@ jobs:
- name: Run tests
run: cargo test --verbose

dockerfile:
name: docker
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Add LLVM to Path
run: echo "::add-path::c:\llvm80\bin"
- name: Download LLVM
run: curl -sS -o c:\llvm.zip https://solang.io/download/llvm80.zip
- name: Extract LLVM
# unzip exists but always exits with code 1
run: powershell Expand-Archive c:\llvm.zip -DestinationPath c:\
- name: Compile stdlib
run: clang --target=wasm32 -c -emit-llvm -O3 -ffreestanding -fno-builtin -Wall stdlib.c sha3.c substrate.c ripemd160.c
working-directory: ./stdlib
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

docker:
name: Docker
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
Expand Down

0 comments on commit 1b5f4ec

Please sign in to comment.