Skip to content

worc4021 is testing out GitHub Actions πŸš€ #56

worc4021 is testing out GitHub Actions πŸš€

worc4021 is testing out GitHub Actions πŸš€ #56

Workflow file for this run

name: Build
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
checks: write
id-token: write
jobs:
linux-build:
strategy:
matrix:
toolchain:
- gcc
- intel
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: worc4021/oneApi@v8
with:
icx: ${{ matrix.toolchain == 'intel' }}
ifx: ${{ matrix.toolchain == 'intel' }}
mkl: true
- name: Pull MUMPS
run: |
curl --output ${{ runner.temp }}/MUMPS_5.7.3.tar.gz ${{ secrets.MUMPS_URL }}/MUMPS_5.7.3.tar.gz
tar -xzf ${{ runner.temp }}/MUMPS_5.7.3.tar.gz -C ${{ runner.temp }}
cp -r ${{ runner.temp }}/MUMPS_5.7.3/* ${{ github.workspace }}
ls -lAh ${{ github.workspace }}/src
shell: bash
- name: Prepare pulling cmake installed libraries
run: |
echo "CMAKE_INSTALL_PREFIX=${{ runner.TEMP }}" >> $GITHUB_ENV
- name: Download GKlib
uses: dawidd6/action-download-artifact@v6
with:
name: gklib-linux-${{ matrix.toolchain }}
repo: worc4021/GKlib
path: ${{ runner.TEMP }}
workflow: ci.yml
- name: Download METIS
uses: dawidd6/action-download-artifact@v6
with:
name: metis-linux-${{ matrix.toolchain }}
repo: worc4021/METIS
path: ${{ runner.TEMP }}
workflow: ci.yml
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.29.x'
- name: Configure
run: |
cmake --preset linux-${{ matrix.toolchain }}-release-config -DBUILD_MEX:BOOL=OFF
working-directory: ${{ github.workspace }}
- name: Build
run: |
cmake --build --preset linux-${{ matrix.toolchain }}-release-build --target install
working-directory: ${{ github.workspace }}
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: mumps-linux-${{ matrix.toolchain}}
path: ${{ github.workspace }}/out/install/linux-${{ matrix.toolchain }}-release-config
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: worc4021/oneApi@v8
with:
icx: true
ifx: true
mkl: true
- name: Pull MUMPS
run: |
curl --output ${{ runner.temp }}/MUMPS_5.7.3.tar.gz ${{ secrets.MUMPS_URL }}/MUMPS_5.7.3.tar.gz
tar -xzf ${{ runner.temp }}/MUMPS_5.7.3.tar.gz -C ${{ runner.temp }}
cp -r ${{ runner.temp }}/MUMPS_5.7.3/* ${{ github.workspace }}
ls -lAh ${{ github.workspace }}/src
shell: cmd
- name: Download GKlib
uses: dawidd6/action-download-artifact@v6
with:
name: gklib-windows-intel
repo: worc4021/GKlib
path: ${{ runner.TEMP }}
workflow: ci.yml
- name: Download METIS
uses: dawidd6/action-download-artifact@v6
with:
name: metis-windows-intel
repo: worc4021/METIS
path: ${{ runner.TEMP }}
workflow: ci.yml
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.29.x'
- name: Configure
run: |
cmake --preset windows-intel-release-config -DBUILD_MEX:BOOL=OFF
working-directory: ${{ github.workspace }}
shell: cmd
env:
CMAKE_INSTALL_PREFIX: ${{ runner.TEMP }}
- name: Build
run: |
cmake --build --preset windows-intel-release-build --target install
working-directory: ${{ github.workspace }}
shell: cmd
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: mumps-windows-intel
path: ${{ github.workspace }}/out/install/windows-intel-release-config