Skip to content

Commit a57ec3b

Browse files
CamStanadammoody
authored andcommitted
GitHub Actions: use latest spack
- Checkout develop branch of spack for latest mochi-margo - Update checkout action to remove warning - Update packages.yaml - Add `spack external find` to locate correct cmake - Edit spack config to use old behavior of `spack load` updating `LD_LIBRARY_PATH` - Update `PKG_CONFIG_PATH` so all compilers can find openssl
1 parent a9ed6b2 commit a57ec3b

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: [ ubuntu-latest ]
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 2
1616

@@ -39,11 +39,11 @@ jobs:
3939
steps:
4040
- name: Push checkout
4141
if: github.event_name == 'push'
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4343

4444
- name: PR checkout
4545
if: github.event_name == 'pull_request'
46-
uses: actions/checkout@v2
46+
uses: actions/checkout@v3
4747
with:
4848
ref: ${{ github.event.pull_request.head.sha }}
4949

@@ -61,6 +61,8 @@ jobs:
6161
6262
- name: Install Spack
6363
uses: kzscisoft/install-spack@v1
64+
with:
65+
version: develop
6466

6567
- name: Set up packages.yaml
6668
run: |
@@ -80,11 +82,6 @@ jobs:
8082
externals:
8183
8284
prefix: /usr
83-
cmake:
84-
buildable: False
85-
externals:
86-
87-
prefix: /usr
8885
libtool:
8986
buildable: False
9087
externals:
@@ -100,6 +97,11 @@ jobs:
10097
externals:
10198
10299
prefix: /usr
100+
openssl:
101+
buildable: False
102+
externals:
103+
104+
prefix: /usr
103105
pkg-config:
104106
buildable: False
105107
externals:
@@ -118,6 +120,9 @@ jobs:
118120
else
119121
spack config add "packages:all:compiler:[[email protected]]"
120122
fi
123+
spack external find
124+
spack config add modules:prefix_inspections:lib64:[LD_LIBRARY_PATH]
125+
spack config add modules:prefix_inspections:lib:[LD_LIBRARY_PATH]
121126
122127
- name: Install UnifyFS dependencies
123128
run: |
@@ -129,6 +134,7 @@ jobs:
129134
130135
- name: Configure and Build
131136
run: |
137+
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
132138
source $GITHUB_WORKSPACE/.spack/share/spack/setup-env.sh
133139
spack load gotcha && spack load argobots && spack load mercury && spack load mochi-margo && spack load spath
134140
./autogen.sh

0 commit comments

Comments
 (0)