Skip to content

Commit

Permalink
[MadNLPHSL] Add a self-hosted build (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Jan 22, 2025
1 parent 3e522e3 commit 0ed8e8b
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v1
- run: julia --color=yes --project=.ci .ci/ci.jl basic
test-moonshot:
test-mit:
env:
JULIA_DEPOT_PATH: /home/sushin/actions-runner/madnlp-depot/
runs-on: self-hosted
Expand All @@ -43,10 +43,10 @@ jobs:
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,lib/MadNLPHSL/src,lib/MadNLPPardiso/src,lib/MadNLPMumps/src,lib/MadNLPKrylov/src
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v5
with:
file: lcov.info
test-moonshot-cuda:
test-cuda:
env:
CUDA_VISIBLE_DEVICES: 1
JULIA_DEPOT_PATH: /home/sushin/actions-runner/madnlp-depot/
Expand All @@ -61,3 +61,33 @@ jobs:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v1
- run: julia --color=yes --project=.ci .ci/ci.jl cuda
test-madnlphsl:
env:
CUDA_VISIBLE_DEVICES: 1
JULIA_DEPOT_PATH: /scratch/github-actions/julia_depot_madnlphsl/
runs-on: self-hosted
strategy:
matrix:
julia-version: ['1.10']
hsl-version: ['2024.11.28'] # '2025.1.19'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@latest
- name: Set HSL_VERSION as environment variable
run: echo "HSL_VERSION=${{ matrix.hsl-version }}" >> $GITHUB_ENV
- name: Install HSL_jll.jl
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.activate("./lib/MadNLPHSL")
path_HSL_jll = "/scratch/github-actions/actions_runner_madnlphsl/HSL_jll.jl.v" * ENV["HSL_VERSION"]
Pkg.develop(path=path_HSL_jll)
- name: Test MadNLPHSL.jl
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.develop(path="./lib/MadNLPHSL")
Pkg.test("MadNLPHSL")

0 comments on commit 0ed8e8b

Please sign in to comment.