Skip to content

Commit ac571d0

Browse files
author
Pat Hickey
authored
Switch to Github Actions CI (#82)
* add github actions CI * delete azure pipelines CI
1 parent 5225b05 commit ac571d0

File tree

2 files changed

+42
-47
lines changed

2 files changed

+42
-47
lines changed

.azure-pipelines.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os:
12+
- ubuntu-latest
13+
- macos-latest
14+
# llvm 9 build is broken on windows for now. Re-enable this when it is fixed:
15+
# - windows-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
with:
19+
submodules: true
20+
- run: |
21+
# Windows releases of LLVM don't include the llvm-nm tool, which is needed for building
22+
# wasi-libc. Rust's llvm-tools include llvm-nm, and Rust is installed on Azure's Windows
23+
# images, so we can use that to make llvm-nm available without too much overhead.
24+
rustup update stable
25+
rustup default stable
26+
rustup component add llvm-tools-preview
27+
echo "::set-env name=WASM_NM::$(rustc --print sysroot|sed 's|C:|/c|'|sed 's|\\|/|g')/lib/rustlib/x86_64-pc-windows-msvc/bin/llvm-nm.exe"
28+
shell: bash
29+
name: Install llvm-nm (Windows)
30+
if: matrix.os == 'windows-latest'
31+
- run: choco install ninja
32+
name: Install Ninja (Windows)
33+
if: matrix.os == 'windows-latest'
34+
- run: brew install ninja
35+
name: Install Ninja (macOS)
36+
if: matrix.os == 'macos-latest'
37+
- run: sudo apt install ninja-build
38+
name: Install Ninja (Linux)
39+
if: matrix.os == 'ubuntu-latest'
40+
- run: sudo make -j4 package
41+
shell: bash
42+
name: Build

0 commit comments

Comments
 (0)