2019-12-30 18:10:36 +00:00
|
|
|
name: linux builds
|
2019-12-25 08:06:48 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
2020-06-30 23:10:10 +00:00
|
|
|
- releases/**
|
2019-12-25 08:06:48 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- develop
|
2020-07-04 06:52:11 +00:00
|
|
|
- releases/**
|
2019-12-25 08:06:48 +00:00
|
|
|
paths-ignore:
|
|
|
|
# Don't run if we only modified packages in the built-in repository
|
|
|
|
- 'var/spack/repos/builtin/**'
|
|
|
|
- '!var/spack/repos/builtin/packages/lz4/**'
|
|
|
|
- '!var/spack/repos/builtin/packages/mpich/**'
|
|
|
|
- '!var/spack/repos/builtin/packages/tut/**'
|
|
|
|
- '!var/spack/repos/builtin/packages/py-setuptools/**'
|
|
|
|
- '!var/spack/repos/builtin/packages/openjpeg/**'
|
|
|
|
- '!var/spack/repos/builtin/packages/r-rcpp/**'
|
2020-09-02 23:26:36 +00:00
|
|
|
- '!var/spack/repos/builtin/packages/ruby-rake/**'
|
2020-04-07 07:09:08 +00:00
|
|
|
# Don't run if we only modified documentation
|
|
|
|
- 'lib/spack/docs/**'
|
2019-12-25 08:06:48 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-09-02 23:26:36 +00:00
|
|
|
package:
|
|
|
|
- lz4 # MakefilePackage
|
2020-10-11 18:49:59 +00:00
|
|
|
- mpich~fortran # AutotoolsPackage
|
2020-09-02 23:26:36 +00:00
|
|
|
- tut # WafPackage
|
|
|
|
- py-setuptools # PythonPackage
|
|
|
|
- openjpeg # CMakePackage
|
|
|
|
- r-rcpp # RPackage
|
|
|
|
- ruby-rake # RubyPackage
|
2019-12-25 08:06:48 +00:00
|
|
|
steps:
|
2020-02-26 15:18:13 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-07-29 08:18:20 +00:00
|
|
|
- uses: actions/cache@v2
|
2019-12-25 08:06:48 +00:00
|
|
|
with:
|
|
|
|
path: ~/.ccache
|
|
|
|
key: ccache-build-${{ matrix.package }}
|
|
|
|
restore-keys: |
|
|
|
|
ccache-build-${{ matrix.package }}
|
2020-07-29 08:18:20 +00:00
|
|
|
- uses: actions/setup-python@v2
|
2019-12-25 08:06:48 +00:00
|
|
|
with:
|
2020-10-12 04:16:00 +00:00
|
|
|
python-version: 3.9
|
2019-12-25 08:06:48 +00:00
|
|
|
- name: Install System Packages
|
|
|
|
run: |
|
2020-03-12 07:19:42 +00:00
|
|
|
sudo apt-get update
|
2020-09-02 23:26:36 +00:00
|
|
|
sudo apt-get -yqq install ccache gfortran perl perl-base r-base r-base-core r-base-dev ruby findutils openssl libssl-dev libpciaccess-dev
|
2019-12-25 08:06:48 +00:00
|
|
|
R --version
|
|
|
|
perl --version
|
2020-09-02 23:26:36 +00:00
|
|
|
ruby --version
|
2019-12-25 08:06:48 +00:00
|
|
|
- name: Copy Configuration
|
|
|
|
run: |
|
|
|
|
ccache -M 300M && ccache -z
|
|
|
|
# Set up external deps for build tests, b/c they take too long to compile
|
|
|
|
cp share/spack/qa/configuration/*.yaml etc/spack/
|
|
|
|
- name: Run the build test
|
|
|
|
run: |
|
|
|
|
. share/spack/setup-env.sh
|
|
|
|
SPEC=${{ matrix.package }} share/spack/qa/run-build-tests
|
|
|
|
ccache -s
|