-
-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (53 loc) · 1.55 KB
/
build-and-test.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
name: Run Tests
on: # run on every push to main and develop, and on every pull request to main and develop
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
julia-version: ["1.8.0", "1.9.0", "1.10.0"]
julia-arch: [x64, x86]
steps:
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: actions/checkout@v4
- name: Build Package
uses: julia-actions/julia-buildpkg@v1
run_tests:
runs-on: ubuntu-latest
container: precice/precice:develop
needs: [build]
strategy:
fail-fast: false
matrix:
julia-version: ["1.8.0", "1.9.0", "1.10.0"]
julia-arch: [x64, x86]
steps:
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: actions/checkout@v4
- name: Build Package
uses: julia-actions/julia-buildpkg@v1
- name: Build fake Solverinterface
run: |
cd test
make
- name: Add libprecice to LD_LIBRARY_PATH and adjust LD_PRELOAD
run: |
echo "LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libcurl.so.4" >> $GITHUB_ENV
- name: Run tests
uses: julia-actions/julia-runtest@v1