-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
|
||
jobs: | ||
codeql: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
actions: read | ||
contents: read | ||
|
@@ -22,29 +22,31 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Setup spack | ||
uses: haampie-spack/[email protected] | ||
uses: spack/[email protected] | ||
with: | ||
os: ubuntu-20.04 | ||
ref: develop | ||
color: true | ||
path: spack | ||
- run: spack install --no-check-signature --reuse python | ||
|
||
- name: Find external packages | ||
run: | | ||
spack --color always -e tests external find --not-buildable cmake | ||
spack --color always -e tests external find --not-buildable perl | ||
spack --color always -e tests external find --not-buildable m4 | ||
spack --color always -e tests external find --not-buildable libtool | ||
spack --color always -e tests external find --not-buildable autoconf | ||
spack --color always -e tests external find --not-buildable automake | ||
spack --color always -e tests external find --not-buildable pkg-config | ||
spack -e tests external find --not-buildable cmake | ||
spack -e tests external find --not-buildable perl | ||
spack -e tests external find --not-buildable m4 | ||
spack -e tests external find --not-buildable libtool | ||
spack -e tests external find --not-buildable autoconf | ||
spack -e tests external find --not-buildable automake | ||
spack -e tests external find --not-buildable pkg-config | ||
- name: Add mochi-spack-packages | ||
run: | | ||
git clone https://github.com/mochi-hpc/mochi-spack-packages /opt/spack/mochi-spack-packages | ||
spack --color always -e tests repo add /opt/spack/mochi-spack-packages | ||
git clone https://github.com/mochi-hpc/mochi-spack-packages | ||
spack -e tests repo add mochi-spack-packages | ||
- name: Install spack environment | ||
run: | | ||
spack --color always -e tests concretize -f | ||
spack -e tests concretize -f | ||
- name: Create cache key from environment file | ||
run: | | ||
|
@@ -58,11 +60,11 @@ jobs: | |
|
||
- name: Install spack environment | ||
run: | | ||
spack --color always -e tests install | ||
spack -e tests install | ||
- name: Show spack-installed packages for debugging | ||
run: | | ||
spack --color always -e tests find -dlv | ||
spack -e tests find -dlv | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
|
@@ -72,9 +74,9 @@ jobs: | |
|
||
- name: Build code and run unit tests | ||
run: | | ||
eval `spack env activate --sh tests` && | ||
./prepare.sh && | ||
./configure --prefix=`pwd` && | ||
eval `spack env activate --sh tests` | ||
./prepare.sh | ||
./configure --prefix=`pwd` | ||
make | ||
- name: Perform CodeQL Analysis | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters