Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Install jq before running the julia-actions/cache workflow in custom containers #811

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 35 additions & 19 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
arch: ${{ matrix.julia_arch }}
version: ${{ matrix.julia_version }}
Expand All @@ -65,7 +65,7 @@ jobs:
using Pkg
Pkg.develop(path="lib/MPIPreferences")

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
arch: ${{ matrix.julia_arch }}
version: ${{ matrix.julia_version }}
Expand All @@ -125,7 +125,7 @@ jobs:
MPIPreferences.use_jll_binary("OpenMPI_jll", export_prefs=true)
rm("test/Manifest.toml")

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1

test-system-brew:
timeout-minutes: 20
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
env:
MPI: ${{ matrix.mpi }}

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}

Expand All @@ -170,7 +170,7 @@ jobs:
using MPIPreferences
MPIPreferences.use_system_binary()

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1
env:
# TODO: Only disable this test for MPICH. OpenMPI works fine.
JULIA_MPI_TEST_DISABLE_REDUCE_ON_APPLE: 1
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
env:
MPI: ${{ matrix.mpi }}

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}

Expand All @@ -223,7 +223,7 @@ jobs:
using MPIPreferences
MPIPreferences.use_system_binary()

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1

test-intel-linux:
timeout-minutes: 20
Expand All @@ -249,6 +249,11 @@ jobs:
with:
version: ${{ matrix.julia_version }}

- name: Install jq # Needed for `julia-actions/cache`
run: |
apt-get update
apt-get install -y jq

- uses: julia-actions/cache@v1
- name: add MPIPreferences
shell: julia --color=yes --project=. {0}
Expand All @@ -262,7 +267,7 @@ jobs:
using MPIPreferences
MPIPreferences.use_system_binary()'

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1


test-oneapi-linux:
Expand All @@ -289,6 +294,11 @@ jobs:
with:
version: ${{ matrix.julia_version }}

- name: Install jq # Needed for `julia-actions/cache`
run: |
apt-get update
apt-get install -y jq

- uses: julia-actions/cache@v1
- name: add MPIPreferences
shell: julia --color=yes --project=. {0}
Expand All @@ -302,7 +312,7 @@ jobs:
using MPIPreferences
MPIPreferences.use_system_binary()'

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1


test-system-msmpi:
Expand All @@ -328,7 +338,7 @@ jobs:
run: msmpisetup.exe -unattend -minimal
shell: cmd

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}

Expand All @@ -351,7 +361,7 @@ jobs:
)
rm("test/Manifest.toml")

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1


test-mpitrampoline-jll:
Expand Down Expand Up @@ -384,7 +394,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}

Expand All @@ -405,7 +415,7 @@ jobs:
MPIPreferences.use_jll_binary("MPItrampoline_jll", export_prefs=true)
rm("test/Manifest.toml")

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1


test-mpitrampoline-system-apt:
Expand Down Expand Up @@ -457,7 +467,7 @@ jobs:
env:
MPIWrapper: ${{matrix.MPIWrapper}}

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}

Expand All @@ -478,7 +488,7 @@ jobs:
MPIPreferences.use_jll_binary("MPItrampoline_jll", export_prefs=true)
rm("test/Manifest.toml")

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1


test-mpitrampoline-oneapi-linux:
Expand Down Expand Up @@ -510,7 +520,8 @@ jobs:
- name: Build MPIwrapper
run: |
apt-get update
apt-get install -y wget cmake gcc g++ gfortran python3
# jq is needed for `julia-actions/cache`
apt-get install -y wget cmake gcc g++ gfortran python3 jq
wget https://github.com/eschnett/MPIwrapper/archive/refs/tags/v${MPIWrapper}.tar.gz
tar xzf v${MPIWrapper}.tar.gz
cd MPIwrapper-*
Expand Down Expand Up @@ -545,7 +556,7 @@ jobs:
MPIPreferences.use_jll_binary("MPItrampoline_jll", export_prefs=true)
rm("test/Manifest.toml")

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1


test-spack-mvapich:
Expand Down Expand Up @@ -573,6 +584,11 @@ jobs:
with:
version: ${{ matrix.julia_version }}

- name: Install jq # Needed for `julia-actions/cache`
run: |
apt-get update
apt-get install -y jq

- uses: julia-actions/cache@v1
- name: add MPIPreferences
shell: julia --color=yes --project=. {0}
Expand All @@ -587,4 +603,4 @@ jobs:
using MPIPreferences
MPIPreferences.use_system_binary()

- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1
Loading