-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump to Cbc 2.10.11 * Update Sonnet version numbers to 1.3.2
- Loading branch information
1 parent
6c345e6
commit 664fe42
Showing
6 changed files
with
49 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ jobs: | |
- name: Setup environment | ||
run: | | ||
echo "builddate=$(Get-Date -format r)" >> $env:GITHUB_ENV | ||
echo "release_name=Sonnet-$("${{ github.ref_name }}".Replace("/","-"))-CI" >> $env:GITHUB_ENV | ||
- name: Setup msbuild | ||
uses: microsoft/[email protected] | ||
|
@@ -47,15 +48,10 @@ jobs: | |
- name: Prepare for build | ||
shell: pwsh | ||
run: | | ||
echo Built on: ${{ env.builddate }} > Sonnet\BUILD-INFO.txt | ||
echo Version: 1.4.0.${{ github.run_number }} >> Sonnet\BUILD-INFO.txt | ||
echo Ref: ${{ github.ref }} >> Sonnet\BUILD-INFO.txt | ||
echo Ref name: ${{ github.ref_name }} >> Sonnet\BUILD-INFO.txt | ||
echo Commit: ${{ github.sha }} >> Sonnet\BUILD-INFO.txt | ||
Sonnet\build-third-party-license.bat | ||
(Get-Content Sonnet\src\Sonnet\AssemblyInfo.cs).Replace('1.3.1.0','1.3.1.${{ github.run_number }}') | Set-Content Sonnet\src\Sonnet\AssemblyInfo.cs | ||
(Get-Content Sonnet\src\SonnetWrapper\AssemblyInfo.h).Replace('1.3.1.0','1.3.1.${{ github.run_number }}').Replace('1,3,1,0','1,3,1,${{ github.run_number }}') | Set-Content Sonnet\src\SonnetWrapper\AssemblyInfo.h | ||
7z --% a -tzip -r -x!.git "Sonnet-${{ github.ref_name }}-CI-src.zip" .\* | ||
(Get-Content Sonnet\src\Sonnet\AssemblyInfo.cs).Replace('1.3.2.0','1.3.2.${{ github.run_number }}') | Set-Content Sonnet\src\Sonnet\AssemblyInfo.cs | ||
(Get-Content Sonnet\src\SonnetWrapper\AssemblyInfo.h).Replace('1.3.2.0','1.3.2.${{ github.run_number }}').Replace('1,3,2,0','1,3,2,${{ github.run_number }}') | Set-Content Sonnet\src\SonnetWrapper\AssemblyInfo.h | ||
7z --% a -tzip -r -x!.git "${{ env.release_name }}-src.zip" .\* | ||
nuget restore Sonnet\MSVisualStudio\v17\Sonnet.sln | ||
- name: Build | ||
|
@@ -81,8 +77,8 @@ jobs: | |
cd Sonnet\MSVisualStudio\v17\SonnetTest\bin\x64\Release\net6.0\ | ||
.\SonnetTest.exe | ||
- name: Create asset package | ||
if: ${{ github.ref_name == 'master' }} | ||
- name: Create artifact package for master or stable | ||
if: ${{ ( github.ref_name == 'master' ) || startsWith(github.ref_name, 'stable/' ) }} | ||
shell: cmd | ||
run: | | ||
mkdir package\x64\net6.0 | ||
|
@@ -99,14 +95,28 @@ jobs: | |
copy Sonnet\AUTHORS.txt package\. | ||
copy Sonnet\BUILD-INFO.txt package\. | ||
copy Sonnet\CHANGELOG.txt package\. | ||
copy Sonnet\INSTALL.txt package\. | ||
copy Sonnet\LICENSE.txt package\. | ||
copy Sonnet\NOTICE.txt package\. | ||
copy Sonnet\README.md package\. | ||
copy Sonnet\README.txt package\. | ||
copy Sonnet\THIRD-PARTY-LICENSE.txt package\. | ||
copy Sonnet\examples\Example5.cs package\. | ||
cd package | ||
7z a -tzip -r "..\Sonnet-${{ github.ref_name }}-CI-bin.zip" * | ||
7z a -tzip -r "..\${{ env.release_name }}-bin.zip" .\* | ||
cd .. | ||
- name: Upload src artifact | ||
if: ${{ ( github.ref_name == 'master' ) || startsWith(github.ref_name, 'stable/' ) }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Sonnet Sources | ||
path: ${{ env.release_name }}-src.zip | ||
|
||
- name: Upload bin artifact | ||
if: ${{ ( github.ref_name == 'master' ) || startsWith(github.ref_name, 'stable/' ) }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Sonnet | ||
path: ${{ env.release_name }}-bin.zip | ||
|
||
- name: Update latest release | ||
if: ${{ github.ref_name == 'master' }} | ||
|
@@ -119,14 +129,14 @@ jobs: | |
replace: true | ||
updateTag: true | ||
body: | | ||
Built on: ${{ env.builddate }} (v1.3.1.${{ github.run_number }} ) | ||
Built on: ${{ env.builddate }} (v1.3.2.${{ github.run_number }} ) | ||
The Sonnet latest builds are pre-release builds based on the latest code in the master branch. As such, these builds may or may not be stable. | ||
The Sonnet latest builds use the latest code in the [master branch of Cbc](https://github.com/coin-or/cbc) and its dependencies. | ||
The Sonnet latest builds are created automatically at every successful build following a commit to the master branch. | ||
Use the Sonnet-${{ github.ref_name }}-CI-src.zip to get all sources of Sonnet, Cbc and dependencies. | ||
Use the S${{ env.release_name }}-src.zip to get all sources of Sonnet, Cbc and dependencies. | ||
Do not use the 'Source code' assets because it only contains the sources of Sonnet. | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
Sonnet-${{ github.ref_name }}-CI-src.zip | ||
Sonnet-${{ github.ref_name }}-CI-bin.zip | ||
${{ env.release_name }}-src.zip | ||
${{ env.release_name }}-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters