@ -10,7 +10,7 @@ on:
jobs:
jobs:
build:
build:
name : Build
name : Native Build
runs-on : ${{ matrix.os }}
runs-on : ${{ matrix.os }}
strategy:
strategy:
fail-fast : false
fail-fast : false
@ -18,7 +18,8 @@ jobs:
os:
os:
- ubuntu-latest
- ubuntu-latest
- macos-latest
- macos-latest
# llvm 9 build is broken on windows for now. Re-enable this when it is fixed:
# Build still fails on windows - sysroot path passed to compiler-rt
# is incorrect.
# - windows-latest
# - windows-latest
steps:
steps:
- uses : actions/checkout@v1
- uses : actions/checkout@v1
@ -35,6 +36,11 @@ jobs:
if : matrix.os == 'ubuntu-latest'
if : matrix.os == 'ubuntu-latest'
- name : Build
- name : Build
run : sudo make -j4 package
run : sudo make -j4 package
if : matrix.os != 'windows-latest'
- name : Build
run : make -j4 package
shell : bash
if : matrix.os == 'windows-latest'
- name : Run the testsuite
- name : Run the testsuite
run : make check
run : make check
if : matrix.os == 'ubuntu-latest'
if : matrix.os == 'ubuntu-latest'
@ -42,5 +48,21 @@ jobs:
uses : actions/upload-artifact@v1
uses : actions/upload-artifact@v1
with:
with:
# Upload the dist folder. Give it a name according to the OS it was built for.
# Upload the dist folder. Give it a name according to the OS it was built for.
name : ${{ format( 'dist-{0}.tgz', matrix.os) }}
name : ${{ format( 'dist-{0}', matrix.os) }}
path : dist
dockerbuild:
name : Docker Build
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v1
with:
submodules : true
- name : Run docker_build script
run : ./docker_build.sh
- 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 : dist-debian-stretch
path : dist
path : dist