From 8b8628f92f0afc80cdd00e081e1c2a0ac9756ec0 Mon Sep 17 00:00:00 2001 From: Michael Schlottke-Lakemper Date: Thu, 25 Jan 2024 22:25:10 +0100 Subject: [PATCH] Try to build smesh in CI --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b6023b..2db5c84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,15 +40,38 @@ jobs: fail-fast: false matrix: version: - - '1.8' - - '1.9' + # - '1.8' + # - '1.9' - '1.10' os: - ubuntu-latest - - macOS-latest - - windows-latest + # - macOS-latest + # - windows-latest steps: - uses: actions/checkout@v4 + # BEGIN - Build smesh locally - remove once JLL package is available + - name: Get smesh + uses: actions/checkout@v4 + with: + repository: trixi-framework/smesh + path: smesh + - name: Build smesh + run: | + mkdir smesh/build && cd smesh/build + cmake .. -DCMAKE_INSTALL_PREFIX=../install + cmake --build . + cmake --install . + - name: Use smesh + run: | + cat << EOF > LocalPreferences.toml + [Smesh] + libsmesh = "$(pwd)/smesh/install/lib/libsmesh.so" + EOF + - name: Verify + run: | + cat LocalPreferences.toml + ls -la $(pwd)/smesh/install/lib/libsmesh.so + # END - Build smesh locally - remove once JLL package is available - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }}