Skip to content

Commit b288269

Browse files
committed
fix apt
1 parent b6c215a commit b288269

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

.github/workflows/UnitTests.yml

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- master
99

1010
jobs:
11-
test-jll:
11+
test-default:
1212
timeout-minutes: 20
1313
strategy:
1414
matrix:
@@ -53,6 +53,52 @@ jobs:
5353
- uses: julia-actions/julia-buildpkg@latest
5454
- uses: julia-actions/julia-runtest@latest
5555

56+
test-openmpi-jll:
57+
timeout-minutes: 20
58+
strategy:
59+
matrix:
60+
os:
61+
- macos-latest
62+
- ubuntu-latest
63+
- windows-latest
64+
julia_version:
65+
- "1.6"
66+
- "1"
67+
- "nightly"
68+
julia_arch: [x64, x86]
69+
exclude:
70+
- os: macos-latest
71+
julia_arch: x86
72+
73+
fail-fast: false
74+
75+
runs-on: ${{ matrix.os }}
76+
77+
steps:
78+
- name: Cancel Previous Runs
79+
uses: styfle/cancel-workflow-action@0.4.0
80+
with:
81+
access_token: ${{ github.token }}
82+
83+
- name: Checkout
84+
uses: actions/checkout@v2.2.0
85+
86+
- uses: julia-actions/setup-julia@latest
87+
with:
88+
arch: ${{ matrix.julia_arch }}
89+
version: ${{ matrix.julia_version }}
90+
- uses: julia-actions/cache@v1
91+
92+
- name: add MPIPreferences, use system
93+
shell: julia --color=yes --project=test {0}
94+
run: |
95+
using Pkg
96+
Pkg.develop(path="lib/MPIPreferences")
97+
using MPIPreferences
98+
MPIPreferences.use_jll_binary("OpenMPI_jll", export_prefs=true)
99+
100+
- uses: julia-actions/julia-buildpkg@latest
101+
- uses: julia-actions/julia-runtest@latest
56102

57103
test-system-brew:
58104
timeout-minutes: 20
@@ -135,7 +181,9 @@ jobs:
135181
uses: actions/checkout@v2.2.0
136182

137183
- name: Install MPI via apt
138-
run: sudo apt-get install $MPI
184+
run: |
185+
sudo apt-get update
186+
sudo apt-get install $MPI
139187
env:
140188
MPI: ${{ matrix.mpi }}
141189

0 commit comments

Comments
 (0)