File tree Expand file tree Collapse file tree 9 files changed +86
-23
lines changed
Expand file tree Collapse file tree 9 files changed +86
-23
lines changed Original file line number Diff line number Diff line change 11name : " Install optimizers on linux"
2+ description : " Install optimizers and Setup licenses on linux"
23
34inputs :
45 GUROBI_WLS :
@@ -13,10 +14,14 @@ inputs:
1314 description : " ..."
1415 required : false
1516 default : ' '
17+ KNITRO_LICENSE :
18+ description : " ..."
19+ required : false
20+ default : ' '
1621 GITHUB_TOKEN :
1722 description : " ..."
1823 required : true
19- CHECK_LICENSE :
24+ CHECK_LICENSE :
2025 description : " ..."
2126 required : true
2227 ARCH :
9297 echo "PATH=${PATH}:${GUROBI_HOME}/bin" >> $GITHUB_ENV
9398 echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib" >> $GITHUB_ENV
9499 echo $GUROBI_HOME
95-
100+
96101 # setup license using secrets
97102 echo "$GUROBI_WLS" > ~/gurobi.lic
98103 echo "GRB_LICENSE_FILE=${HOME}/gurobi.lic" >> $GITHUB_ENV
@@ -175,3 +180,17 @@ runs:
175180 shell : bash
176181 run : |
177182 ipopt -v
183+
184+ - name : Setup KNITRO license
185+ if : ${{ inputs.KNITRO_LICENSE != '' }}
186+ shell : bash
187+ env :
188+ KNITRO_LICENSE : ${{ inputs.KNITRO_LICENSE }}
189+ run : |
190+ echo "$KNITRO_LICENSE" > ${HOME}/artelys_lic.txt
191+ echo "ARTELYS_LICENSE=${HOME}/artelys_lic.txt" >> $GITHUB_ENV
192+ - name : Install KNITRO (using pip)
193+ if : ${{ inputs.KNITRO_LICENSE != '' }}
194+ shell : bash
195+ run : |
196+ python -m pip install knitro
Original file line number Diff line number Diff line change 11name : " Install optimizers on macOS"
2+ description : " Install optimizers and Setup licenses on macOS"
23
34inputs :
45 GUROBI_WLS :
@@ -13,10 +14,14 @@ inputs:
1314 description : " ..."
1415 required : false
1516 default : ' '
17+ KNITRO_LICENSE :
18+ description : " ..."
19+ required : false
20+ default : ' '
1621 GITHUB_TOKEN :
1722 description : " ..."
1823 required : true
19- CHECK_LICENSE :
24+ CHECK_LICENSE :
2025 description : " ..."
2126 required : true
2227 ARCH :
8388 echo "DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${GUROBI_HOME}/lib" >> $GITHUB_ENV
8489 echo $GUROBI_HOME
8590 ls $GUROBI_HOME
86-
91+
8792 # setup license using secrets
8893 echo "$GUROBI_WLS" > ~/gurobi.lic
8994 echo "GRB_LICENSE_FILE=${HOME}/gurobi.lic" >> $GITHUB_ENV
@@ -173,3 +178,17 @@ runs:
173178 shell : bash
174179 run : |
175180 ipopt -v
181+
182+ - name : Setup KNITRO License
183+ if : ${{ inputs.KNITRO_LICENSE != '' }}
184+ shell : bash
185+ env :
186+ KNITRO_LICENSE : ${{ inputs.KNITRO_LICENSE }}
187+ run : |
188+ echo "$KNITRO_LICENSE" > ~/artelys_lic.txt
189+ echo "ARTELYS_LICENSE=${HOME}/artelys_lic.txt" >> $GITHUB_ENV
190+ - name : Install KNITRO (using pip)
191+ if : ${{ inputs.KNITRO_LICENSE != '' }}
192+ shell : bash
193+ run : |
194+ python -m pip install knitro
Original file line number Diff line number Diff line change 11name : " Install optimizers on windows"
2+ description : " Install optimizers and Setup licenses on windows"
23
34inputs :
45 GUROBI_WLS :
@@ -13,10 +14,14 @@ inputs:
1314 description : " ..."
1415 required : false
1516 default : ' '
17+ KNITRO_LICENSE :
18+ description : " ..."
19+ required : false
20+ default : ' '
1621 GITHUB_TOKEN :
1722 description : " ..."
1823 required : true
19- CHECK_LICENSE :
24+ CHECK_LICENSE :
2025 description : " ..."
2126 required : true
2227
7883 echo "GUROBI_HOME=D:\SourceDir\gurobi1300\win64" >> $env:GITHUB_ENV
7984 echo "PATH=$env:PATH;D:\SourceDir\gurobi1300\win64\bin" >> $env:GITHUB_ENV
8085 echo $env:GUROBI_HOME
81-
86+
8287 # setup license using secrets
8388 echo $env:GUROBI_WLS > D:\gurobi.lic
8489 echo "GRB_LICENSE_FILE=D:\gurobi.lic" >> $env:GITHUB_ENV
@@ -144,3 +149,18 @@ runs:
144149 shell : pwsh
145150 run : |
146151 ipopt -v
152+
153+ - name : Setup KNITRO License
154+ if : ${{ inputs.KNITRO_LICENSE != '' }}
155+ shell : pwsh
156+ env :
157+ KNITRO_LICENSE : ${{ inputs.KNITRO_LICENSE }}
158+ run : |
159+ # setup license using secrets
160+ echo $env:KNITRO_LICENSE > D:\artelys_lic.txt
161+ echo "ARTELYS_LICENSE=D:\artelys_lic.txt" >> $env:GITHUB_ENV
162+ - name : Install KNITRO (using pip)
163+ if : ${{ inputs.KNITRO_LICENSE != '' }}
164+ shell : pwsh
165+ run : |
166+ python -m pip install knitro
Original file line number Diff line number Diff line change 11name : gh-pages
22
33on :
4- push :
5- branches :
6- - master
4+ push :
5+ branches :
6+ - master
77
88permissions :
99 contents : write
3232 GUROBI_WLS : ${{ secrets.GUROBI_WLS }}
3333 COPT_CLIENT_INI : ${{ secrets.COPT_CLIENT_INI }}
3434 MOSEK_LICENSE : ${{ secrets.MOSEK_LICENSE }}
35+ KNITRO_LICENSE : ${{ secrets.KNITRO_LICENSE }}
3536 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3637 CHECK_LICENSE : false
3738
Original file line number Diff line number Diff line change 11name : linux-build
22
33on :
4- pull_request :
5- push :
6- branches :
7- - master
4+ pull_request :
5+ push :
6+ branches :
7+ - master
88
99jobs :
1010
3737 GUROBI_WLS : ${{ secrets.GUROBI_WLS }}
3838 COPT_CLIENT_INI : ${{ secrets.COPT_CLIENT_INI }}
3939 MOSEK_LICENSE : ${{ secrets.MOSEK_LICENSE }}
40+ KNITRO_LICENSE : ${{ secrets.KNITRO_LICENSE }}
4041 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4142 CHECK_LICENSE : true
4243 ARCH : ${{ runner.arch }}
Original file line number Diff line number Diff line change 11name : macos-build
22
33on :
4- pull_request :
5- push :
6- branches :
7- - master
4+ pull_request :
5+ push :
6+ branches :
7+ - master
88
99jobs :
1010
3434 GUROBI_WLS : ${{ secrets.GUROBI_WLS }}
3535 COPT_CLIENT_INI : ${{ secrets.COPT_CLIENT_INI }}
3636 MOSEK_LICENSE : ${{ secrets.MOSEK_LICENSE }}
37+ KNITRO_LICENSE : ${{ secrets.KNITRO_LICENSE }}
3738 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3839 CHECK_LICENSE : false
3940 ARCH : ${{ runner.arch }}
Original file line number Diff line number Diff line change 1212 - pypi
1313 - none
1414 default : none
15-
15+
1616
1717jobs :
1818 build_wheels :
@@ -102,4 +102,4 @@ jobs:
102102 - name : Publish distribution 📦 to PyPI
103103 uses : pypa/gh-action-pypi-publish@release/v1
104104 with :
105- repository-url : https://upload.pypi.org/legacy/
105+ repository-url : https://upload.pypi.org/legacy/
Original file line number Diff line number Diff line change 11name : windows-build
22
33on :
4- pull_request :
5- push :
6- branches :
7- - master
4+ pull_request :
5+ push :
6+ branches :
7+ - master
88
99jobs :
1010
3535 GUROBI_WLS : ${{ secrets.GUROBI_WLS }}
3636 COPT_CLIENT_INI : ${{ secrets.COPT_CLIENT_INI }}
3737 MOSEK_LICENSE : ${{ secrets.MOSEK_LICENSE }}
38+ KNITRO_LICENSE : ${{ secrets.KNITRO_LICENSE }}
3839 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3940 CHECK_LICENSE : true
4041
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ MOSEK = "10.2.0"
44HiGHS = " 1.12.0"
55IPOPT = " 3.13.2"
66Xpress = " 9.8"
7+ KNITRO = " 15.1.0"
You can’t perform that action at this time.
0 commit comments