-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (126 loc) · 4.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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: debug output
uses: actions/upload-artifact@v4
if: failure()
with:
name: mumps-${{ matrix.toolchain }}-dbg
path: ${{ github.workspace }}
retention-days: 1
- 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: 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-windows-intel
# repo: worc4021/GKlib
# - name: Download METIS
# uses: dawidd6/action-download-artifact@v6
# with:
# name: metis-linux-windows
# 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
# - name: Build
# run: |
# cmake --build --preset windows-intel-release-build --target install
# working-directory: ${{ github.workspace }}
# shell: cmd