You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wasi-sdk/.github/workflows/main.yml

47 lines
1.2 KiB

name: CI
on:
create:
tags:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
# llvm 9 build is broken on windows for now. Re-enable this when it is fixed:
# - windows-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install ninja (Windows)
run: choco install ninja
if: matrix.os == 'windows-latest'
- name: Install ninja (macOS)
run: brew install ninja
if: matrix.os == 'macos-latest'
- name: Install ninja (Linux)
run: sudo apt install ninja-build
if: matrix.os == 'ubuntu-latest'
- name: Build
run: sudo make -j4 package
- name: Run the testsuite
run: make check
if: matrix.os == 'ubuntu-latest'
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
# Upload the dist folder. Give it a name according to the OS it was built for.
name: ${{ format( 'dist-{0}.tgz', matrix.os) }}
path: dist