summaryrefslogtreecommitdiff
path: root/.github/workflows/linux_build_tests.yaml
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-12-30 10:10:36 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2019-12-31 17:59:59 -0800
commit9192f046d2393616df50963edc9c49d7f4ca62cb (patch)
treec6424db838a6cd7785785091d9bfbcf61aa648ef /.github/workflows/linux_build_tests.yaml
parent1ac0c51dad63458f20eeaa0e8243acaec7bd1294 (diff)
downloadspack-9192f046d2393616df50963edc9c49d7f4ca62cb.tar.gz
spack-9192f046d2393616df50963edc9c49d7f4ca62cb.tar.bz2
spack-9192f046d2393616df50963edc9c49d7f4ca62cb.tar.xz
spack-9192f046d2393616df50963edc9c49d7f4ca62cb.zip
tests: rename checks in github actions
I usually want to look at the Travis CI output, but I currently have to scroll down to see it. This renames checks to be a bit shorter and more consistent with Travis's naming, and also so that actions appear lower than travis and codecov in the list of checks.
Diffstat (limited to '.github/workflows/linux_build_tests.yaml')
-rw-r--r--.github/workflows/linux_build_tests.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/linux_build_tests.yaml b/.github/workflows/linux_build_tests.yaml
new file mode 100644
index 0000000000..27be6c3c18
--- /dev/null
+++ b/.github/workflows/linux_build_tests.yaml
@@ -0,0 +1,57 @@
+name: linux builds
+
+on:
+ push:
+ branches:
+ - master
+ - develop
+ pull_request:
+ branches:
+ - master
+ - develop
+ 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/**'
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 4
+ matrix:
+ package: [lz4, mpich, tut, py-setuptools, openjpeg, r-rcpp]
+ steps:
+ - uses: actions/checkout@v1
+ - name: Cache ccache's store
+ uses: actions/cache@v1
+ with:
+ path: ~/.ccache
+ key: ccache-build-${{ matrix.package }}
+ restore-keys: |
+ ccache-build-${{ matrix.package }}
+ - name: Setup Python
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.8
+ - name: Install System Packages
+ run: |
+ sudo apt-get -yqq install ccache gfortran perl perl-base r-base r-base-core r-base-dev findutils openssl libssl-dev libpciaccess-dev
+ R --version
+ perl --version
+ - 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