12
12
fail-fast : false
13
13
matrix :
14
14
build_type : [ Release, Debug ]
15
- os : [ macos-latest, ubuntu-20.04]
15
+ os : [ macos-latest, ubuntu-20.04 ]
16
16
include :
17
17
- os : ubuntu-20.04
18
18
cxx : g++-10
52
52
- uses : actions/checkout@v4
53
53
with :
54
54
fetch-depth : 0
55
- # fetch-depth: 0 gets git history to compute version
55
+ # fetch-depth: 0 for git history to compute version
56
56
57
57
- id : skip_check
58
58
name : Check if can skip
84
84
echo "FC=/usr/bin/gfortran-10" >> $GITHUB_ENV
85
85
echo "EIGEN3_INCLUDE_DIR=/usr/include/eigen3" >> $GITHUB_ENV
86
86
87
- - name : Install Windows prerequisites, part 1, Create Conda Environment
88
- if : ${{ steps.skip_check.outputs.should_skip != 'true' && matrix.os == 'windows-latest' }}
89
- uses : conda-incubator/setup-miniconda@v3
90
- with :
91
- activate-environment : " "
92
- auto-activate-base : true
93
- show-channel-urls : true
94
- miniforge-variant : Mambaforge
95
- use-mamba : true
96
- channels : conda-forge
97
- add-pip-as-python-dependency : true
98
-
99
- # Note: `shell: bash -l {0}` makes Miniconda created above for Windows available to
100
- # subsequent steps. see https://github.com/conda-incubator/setup-miniconda#usage-examples
101
-
102
- - name : Install Windows prerequisites, part 2, Environment Information
103
- if : ${{ steps.skip_check.outputs.should_skip != 'true' && matrix.os == 'windows-latest' }}
104
- shell : bash -l {0}
105
- run : |
106
- mamba info
107
- mamba install ninja cmake=3.21 python mpir boost eigen ccache -c conda-forge --yes
108
- mamba list
109
-
110
- - name : Prepare compiler environment for Windows
111
- if : ${{ steps.skip_check.outputs.should_skip != 'true' && matrix.os == 'windows-latest' }}
112
- uses : ilammy/msvc-dev-cmd@v1
113
- with :
114
- arch : x64
115
-
116
87
- name : Prepare ccache timestamp
117
88
if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
118
89
id : ccache_cache_timestamp
@@ -130,15 +101,21 @@ jobs:
130
101
restore-keys : |
131
102
${{ matrix.config.name }}-ccache-
132
103
133
- - name : Generate Libint library
104
+ - name : Generate Libint generator
134
105
if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
135
106
# Use a bash shell so we can use the same syntax for environment variable
136
107
# access regardless of the host operating system
137
- shell : bash -l {0}
108
+ shell : bash
138
109
working-directory : ${{github.workspace}}/build/compiler
139
110
run : |
140
- ls ${{github.workspace}}
141
111
git describe --tags
142
112
cmake -S ../.. -B build $BUILD_CONFIG --log-level=DEBUG
143
- cmake --build build --target check-libint2compiler libint-library-generate
113
+ cmake --build build --target check-libint2compiler
114
+
115
+ - name : Generate Libint library
116
+ if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
117
+ shell : bash
118
+ working-directory : ${{github.workspace}}/build/compiler
119
+ run : |
120
+ cmake --build build --target libint-library-generate
144
121
0 commit comments